Client does not support authentication protocol requested by server; conside

If such an error occurs when node connects to mysql, you can execute the following command

First enter mysql in the terminal, and then execute the following command

命令如下:

1、use mysql;
2、alter user ‘root’@‘localhost’ identified with mysql_native_password by ‘数据库密码’;
3、flush privileges;

 

Guess you like

Origin blog.csdn.net/joyvonlee/article/details/104873916