How do you set the root user password for MariaDB in XAMPP on Ubuntu/Kubuntu 16.04?
By default the root user does not have a password set.
I\'m using XAMPP 7.1.1
I managed to do it on both Windows and Linux. On Windows, open command prompt, change directory to \xampp\mysql\bin and use mysqladmin to set password for root user i.e.
cd \xampp\mysql\bin
mysqladmin --user=root password "your_password"
On Linux (Ubuntu/Kubuntu), open terminal emulator and change directory to /opt/lampp/bin i.e.
cd /opt/lampp/bin
./mysqladmin --user=root password "your_password"