nodejs sequelize相关问题记录 --廖

  • 这里都是评论区的某个宝宝给的解决方法
  1. 授权代码:grant all privileges on test.* to ‘www’@’%’ identified by ‘www’;
    出错,修改为: --8.0+的mysql
    use mysql; //选择mysql数据库
    create user ‘www’@’%’ identified by ‘www’; //创建用户(貌似必须跟赋权语句分开)
    grant all privileges on test.* to ‘www’@’%’; //授予权限
    flush privileges; //刷新权限
  2. 遇到错误 ->Client does not support authentication protocol requested by server;
    解决方法->
    ALTER USER ‘www’@’%’ IDENTIFIED WITH mysql_native_password BY ‘www’;
    flush privileges;
    -这个错误是在运行app.js代码时提示的错误
    在这里插入图片描述

暂时没了

猜你喜欢

转载自blog.csdn.net/weixin_44006116/article/details/84870624