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.
原文地址:https://www.cnblogs.com/wuenze/p/12234261.html
时间: 2024-10-27 17:38:42