美文网首页
2019-02-21 node 连接mysql报错'08004'

2019-02-21 node 连接mysql报错'08004'

作者: 路飞戎 | 来源:发表于2019-02-21 14:29 被阅读0次

    Client does not support authentication protocol requested by server; consider upgrading MySQL client
    原因是没有配置数据库初始密码,在mysql命令行执行以下命令即可

    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';
    SELECT plugin FROM mysql.user WHERE User = 'root';
    

    相关文章

      网友评论

          本文标题:2019-02-21 node 连接mysql报错'08004'

          本文链接:https://www.haomeiwen.com/subject/zavryqtx.html