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;