标签:
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm rpm -ivh mysql-community-release-el7-5.noarch.rpm yum install mysql-community-server
mysql -u root
set password =password(‘你的密码‘);
忘记密码
vim /etc/my.cnf mysqld添加 skip-grant-tables mysql -u root use mysql update user set authentication_string = PASSWORD(‘123‘) where User=‘root‘ flush privileges quit service mysqld restart
标签:
原文地址:http://www.cnblogs.com/yangxunwu1992/p/5721029.html