-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Vianney Veremme edited this page May 22, 2024
·
12 revisions
Install the package:
sudo apt install mariadb-serverEnsure that MariaDB is running with the systemctl start command.
sudo mysql_secure_installationNo need to set root password, then I recommend choosing yes to all the following options.
sudo mariadb
GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exitLogin with the following command:
mysql -u admin -pFrom a remote location:
mysql -u admin -p -h ip_adress