yum install -y MysqL-server MysqL MysqL-deve service MysqLd start chkconfig MysqLd on MysqLadmin -u root password ''
然后就能用 MysqL -u root登录了。
接下来要创号给远程用!
GRANT ALL ON *.* TO'myuser'@'%'IDENTIFIED BY 'mypassword';
flush privileges;