π¬Mariadb
We will install the packages with the command:
sudo apt install mariadb-serverBecause the default configuration leaves your MariaDB installation unsecure, we will use a script provided by the mariadb-server package to restrict access to the server and remove unused accounts. We will run the script with the following command:
sudo mysql_secure_installationIt will ask if we want to switch to Unix socket authentication. Since we already have a protected root account we will type N.
Switch to unix_socket autentication? β N Change the root password? β N Remove anonymous users? β Y Disallow root login remotely? β Y Remove test database and access to it? β Y Reload privilege tables now? β Y
Last updated
Was this helpful?