见图:
解决办法:
- /etc/init.d/mysqld stop
- mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
- mysql -uroot –p
- mysql> UPDATE user SET Password=PASSWORD('新的密码') where USER='root' and hos t='root' or host='localhost';
- mysql> FLUSH PRIVILEGES;
- mysql> quit;
- /etc/init.d/mysqld start
- mysql -uroot –p 输入新的密码