[root@WaferSDK ~]# yum list | grep MysqL
[root@WaferSDK ~]# yum install -y MysqL-server MysqL MysqL-devel
[root@WaferSDK ~]# service MysqLd start
[root@WaferSDK ~]# MysqLadmin -u root password 'root'
MysqL> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "newpass";
MysqL> flush privileges;
原文链接:https://www.f2er.com/centos/377453.html