1、安装
yum -y install mariadb-client mariadb-server mariadb-devel
2、启动
service mysql start
3、修改密码
set password for 'root'@'localhost' = password('wuchaofei');
4、授权root非本机访问
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'pwd' WITH GRANT OPTION;
FLUSH PRIVILEGES;
转载于:https://my.oschina.net/chworld/blog/540163