- yum localinstall mysql57-community-release-el6-9.noarch.rpm
- 安装最新版本(直接运行):yum localinstall mysql57-community-release-el6-9.noarch.rpm
- 修改配置文件:/etc/my.cnf
- 启动服务:service mysqld start
- 查询默认密码:sudo grep 'temporary password' /var/log/mysqld.log
- 登录后修改默认密码:ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';