Ubuntu16.04 ERROR 1698 (28000):
2019-02-15 本文已影响1人
CoderZb
【经典解决办法】https://www.cnblogs.com/py1612919884/p/9327015.html
https://blog.csdn.net/wangliyao518/article/details/83011522
测试【成功】
mysql -udebian-sys-maint -p
use mysql;
select user, plugin from mysql.user;
update user set authentication_string =password('NewCoderZB'),plugin='mysql_native_password' where user='root';
select user, plugin from mysql.user;
exit
sudo service mysql restart
mysql -uroot -pNewCoderZB

进入mysql,命令行的方式一:
mysql -uroot -pCoderZB

进入mysql,命令行的方式二:
先敲mysql -uroot -p
回车,然后输入密码(密文)即可。
