美文网首页
: Access denied for user '@&

: Access denied for user '@&

作者: 王小妞闯天涯 | 来源:发表于2018-07-12 18:48 被阅读9次

1.  停止 mysql server.  通常是在 '系统偏好设置' > MySQL > 'Stop MySQL Server'

2.  打开终端,输入:

sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables

3.  打开另一个新终端,输入:

sudo /usr/local/mysql/bin/mysql -u root

UPDATE mysql.user SET authentication_string=PASSWORD('新密码') WHERE User='root';

FLUSH PRIVILEGES;

\q

相关文章

网友评论

      本文标题:: Access denied for user '@&

      本文链接:https://www.haomeiwen.com/subject/sqsnhxtx.html