Service mysqld stop

Mysql_safe --skip-grant-tables --user=mysql& //跳过授权表mysql.user和mysql.db这些表

Mysql -uroot

Update user set password = password(‘1314’) where user = ‘root’ and host=’localhost’;

flush privileges;­