-
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 mariadbGRANT ALL ON *.* TO '<username>'@'localhost' IDENTIFIED BY '<password>' WITH GRANT OPTION;FLUSH PRIVILEGES;exitLogin with the following command:
mysql -u <username> -pFrom a remote location:
mysql -u <username> -p -h <ip_adress>All the databases:
SHOW databases;Only the created (unrequired) databases:
SELECT schema_name
FROM information_schema.schemata
WHERE schema_name NOT IN ('information_schema', 'mysql', 'performance_schema', 'sys');USE <database>;SHOW tables;