yum installation
1. Yum source installation
yum install mariadb-server
2. Start the MySQL service
systemctl start mariadb
3. Check the running status
systemctl status mariadb
4. Set initial password
mysql -u root
use mysql;
update user set password=password("root")where user='root';
flush privileges;
exit;
5. Test:
mysql -u root -p