网站首页 文章专栏 新装mysql流程.md
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
sudo yum install mysql-server
mysql -u root
service mysqld restart
use mysql;
update user set password=password('123456') where user='root';
exit;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTON;
flush privileges;