nodejs 连接 mysql 出现 Client does not support authentication pr
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘password‘
Where root
as your user localhost
as your URL and password
as your password
Then run this query to refresh privileges:
flush privileges;
Try connecting using node after you do so.
If that doesn‘t work, try it without @‘localhost‘
part.
温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/12696.html
- 上一篇:mysql 数据库创建表 id 字段的 sql 设置
- 下一篇:MySQL 索引总结