Node.js mysql顾客端不兼容验证协议书如何办 怎样处

2020-11-13 11:56| 发布者: | 查看: |

mysql控制模块(新项目详细地址为mysqljs/mysql)是一个开源系统的、JavaScript撰写的MySQL驱动器,能够在Node.js运用中来实际操作MySQL。但在应用全过程中,出現了“ER_NOT_SUPPORTED_AUTH_MODE”难题。 文中详细介绍了出現该难题的缘故及处理计划方案。 出错信息内容 当我们尝试应用mysql控制模块来联接MySQL 8时,出現了以下不正确信息内容:
D:\workspaceGithub\nodejs-book-samples\samples\mysql-demo\index.js:17
throw error;
Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
at Handshake.Sequence._packetToError (D:\workspaceGithub\nodejs-book-samples\samples\mysql-demo\node_modules\mysql\lib\protocol\sequences\Sequence.js:47:14)
at Handshake.ErrorPacket (D:\workspaceGithub\nodejs-book-samples\samples\mysql-demo\node_modules\mysql\lib\protocol\sequences\Handshake.js:123:18)
at Protocol._parsePacket (D:\workspaceGithub\nodejs-book-samples\samples\mysql-demo\node_modules\mysql\lib\protocol\Protocol.js:291:23)
at Parser._parsePacket (D:\workspaceGithub\nodejs-book-samples\samples\mysql-demo\node_modules\mysql\lib\protocol\Parser.js:433:10)
at Parser.write (D:\workspaceGithub\nodejs-book-samples\samples\mysql-demo\node_modules\mysql\lib\protocol\Parser.js:43:10)
at Protocol.write (D:\workspaceGithub\nodejs-book-samples\samples\mysql-demo\node_modules\mysql\lib\protocol\Protocol.js:38:16)


<
>

 
QQ在线咨询
售前咨询热线
18720358503
售后服务热线
18720358503
返回顶部