数据库
首页 > 数据库> > MySQL-Server-8.0连接出现“错误1251“解决办法

MySQL-Server-8.0连接出现“错误1251“解决办法

作者:互联网

按顺序执行下面三行语句,每条必须OK再执行下一条!

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '数据库密码';

FLUSH PRIVILEGES;

标签:8.0,IDENTIFIED,Server,USER,1251,password,root,ALTER,localhost
来源: https://www.cnblogs.com/lau86/p/15814170.html