yum install mariadb* -y
systemctl start mariadb.service
mysql -u root
use mysql;
update user set authentication_string=PASSWORD(''), plugin='mysql_native_password' where user='root'; flush privileges;
MariaDB [(none)]> grant select on *.* to 'test'@'%' identified by '123456'; MariaDB [(none)]> grant all on *.* to 'pasa'@'%' identified by '123456'; MariaDB [(none)]> flush privileges;
mysql -upasa -p123456
显示如下信息,则表示创建成功。