rpm -qa | grep -i mariadb
yum install mariadb-server -y
systemctl start mariadb
systemctl status mariadb
mysql -uroot -p
没有密码,直接Enter进入既可。
SET PASSWORD = PASSWORD('123456');
grant all privileges on *.* to 'root' @'%' identified by '123456';
flush privileges;
exit