mysqld_safe --skip-grant-tables
mysql -u root -p;
cd /usr/local/mysql/bin/
./mysql
flush privileges;
Show databases;
Use mysql;
update user set authentication_string='Ab@123456' where User='root';
正常修改密码,已经修改成功,但是再使用mysql -u root -p; 尝试登陆的时候还是提示ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
多次修改密码 尝试登陆的结果都是 无权限
应该是密码没有修改成功
更新下问题:mac安装了mysql8+ ,然后无休止的 出错,无休止的 权限拒绝。尝试半个月不断试验之后,决定卸载8+,重新安装了mysql5.7 就变得 那么的顺滑。。。。。真是个巨坑。。