1. Installation
yum -y install mariadb mariadb-server
2. Start
systemctl start mariadb
3. Set startup
systemctl enable mariadb
4. Simple configuration related to MariaDB
mysql_secure_installation
The first is to set a password, you will be prompted to enter the password first
Enter current password for root (enter for none):<--Enter directly for the first run
set password
Set root password? [Y/n] <– Whether to set the root user password, enter y and press Enter or press Enter directly
New password: <– Set the root user password
Re-enter new password: <– Enter the one you set again password
Other configuration
Remove anonymous users? [Y/n] <– Whether to delete anonymous users, press Enter
Disallow root login remotely? [Y/n] <--whether root remote login is prohibited, press Enter,
Remove test database and access to it? [Y/n] <– Whether to delete the test database, press Enter
Reload privilege tables now? [Y/n] <– whether to reload privilege tables, press Enter
The initialization of MariaDB is completed, and then test the login
mysql -u account -p password