1:安装 yum search mysql
2:yum install mysql-server.x86_643:service mysqld start
4:空密码登陆 然后输入:mysql -u root -p 回车,以空密码登录
5:更新密码
use mysql;
UPDATE user SET password=PASSWORD('123456') WHERE user='root';
刷新:flush privileges;
退出:exit;