Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol 解决办法
1.启动数据库 net start mysql
2.登录数据库 mysql -u root -p
3.用数据库
eg:有 sys,name , age三个数据库你用哪个就需要执行命令,如下
mysql> use name
4. alter user 'root'@'localhost' identified with mysql_native_password by '123456';
//123456为数据库密码
5.flush privileges; //即可解决
node连接数据库出现的问题 ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protoc ol requested by server; 的解决办法:
以下为简化步骤
打开这个 输入数据库密码
输入 use xxx数据库名
然后输入 alter user 'root'@'localhost' identified with mysql_native_password by '123456';
最后 输入 flush privileges; 即可解决