打开终端
在命令行里面输入
mysql -u root -p
输入密码,会输出错误信息ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. (不管)
输出命令重设密码SET PASSWORD = PASSWORD(\'xxxxxxxx\');
OK了,就这么简单
打开终端
在命令行里面输入
mysql -u root -p
输入密码,会输出错误信息ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. (不管)
输出命令重设密码SET PASSWORD = PASSWORD(\'xxxxxxxx\');
OK了,就这么简单