这个不太完美!
查看是否安装mysql命令:rpm -qa|grep -i mysql 安装mysql5.6命令:yum install mysql
service mariadb start
rpm -qa | grep mariadb
mysqladmin -u root password ‘123456’
mysql -u root –p
GRANT ALL PRIVILEGES ON . TO ‘root’@’%'IDENTIFIED BY ‘123456’ WITH GRANT OPTION;
http://blog.csdn.net/dmlcq/article/details/54928661