1.wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
2.yum install mysql-community-release-el6-5.noarch.rpm
3.yum install mysql-community-server
4.service mysqld start
5.mysql
6.修改密码
mysql> SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘newpass‘);
7.
grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘上一部的newpass‘ with grant option;
FLUSH PRIVILEGES;
8.service mysqld restart
原文地址:https://www.cnblogs.com/sumcet/p/8645436.html
时间: 2024-11-05 20:47:40