解决方法如下:
让mysql不载入权限表,命令:mysqld --skip-grant-tables(windows)、mysqld_safe --skip-grant-tables user=mysql或者
/etc/init.d/mysql start --mysqld --skip-grant-tables (linux)
打开另外一个命令窗口,进入mysql的交互界面,密码随便输入。
用update语句设置密码(此时不能用set password语句)。
验证密码修改是否成功
来源: http://zhidao.baidu.com/link?url=0wnwsXf5o-8pU1aGVrj96ibtPrDIdHNeniiMw3GgGEzldj3LFjVxiLTlh_Z7vJJ-W9Z5CY3Z80hLssH2i7KBhK
来自为知笔记(Wiz)
转载于:https://www.cnblogs.com/douJiangYouTiao888/p/6473965.html