设为开机自启
sudo systemctl enable mariadb启动Mariadb
sudo systemctl start mariadb初始化Mariadb
sudo mysql_secure_installation按照指引完成配置
Enter current password for root (enter for none): Change the root password? [Y/n] y New password: Re-enter new password: Remove anonymous users? [Y/n] y Disallow root login remotely? [Y/n] y Remove test database and access to it? [Y/n] y Reload privilege tables now? [Y/n] yAll done! If you’ve completed all of the above steps, your MariaDB installation should now be secure.
Thanks for using MariaDB!
看到All done就知道Mariadb配置完成
即可进入Mariadb