赞
踩
在登录mysql时遇到上面的错误,记录一下
在/etc/mysql/my.cnf中添加
- [mysqld]
- skip-grant-tables
重启mysql
sudo service mysql restart
重新登录
sudo mysql
输入以下命令
- select user, plugin from mysql.user
- update mysql.user set authentication_string=PASSWORD('你的密码'), plugin='mysql_native_plugin' where user='root';
退出
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。