1.wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
2.sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
3.sudo yum install mysql-server
4.vi /etc/my.cnf
添加参数到 文件的前面
#skip-grant-tables=1
5.service mysqld start
6.mysql 进去
之后参考http://www.cnblogs.com/x-radish/p/6980433.html
时间: 2024-12-06 23:19:34