宝塔用户_zfwrvw 发表于 2024-9-6 11:31:27

【待反馈】node项目没办法运行

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
linux
系统版本:
问题描述:
node项目运行启动at Protocol.write (/www/wwwroot/juchuang-serve/node_modules/mysql/lib/protocol/Protocol.js:38:16) at Socket. (/www/wwwroot/juchuang-serve/node_modules/mysql/lib/Connection.js:88:28) at Socket. (/www/wwwroot/juchuang-serve/node_modules/mysql/lib/Connection.js:526:10) at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:315:12) -------------------- at Protocol._enqueue (/www/wwwroot/juchuang-serve/node_modules/mysql/lib/protocol/Protocol.js:144:48) at Protocol.handshake (/www/wwwroot/juchuang-serve/node_modules/mysql/lib/protocol/Protocol.js:51:23) at Connection.connect (/www/wwwroot/juchuang-serve/node_modules/mysql/lib/Connection.js:116:18) at Connection._implyConnect (/www/wwwroot/juchuang-serve/node_modules/mysql/lib/Connection.js:454:10) at Connection.query (/www/wwwroot/juchuang-serve/node_modules/mysql/lib/Connection.js:196:8) at /www/wwwroot/juchuang-serve/model/hotSearch.js:450:12 at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 'ER_NOT_SUPPORTED_AUTH_MODE', errno: 1251, sqlMessage: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client', sqlState: '08004', fatal: true }
相关截图(日志、错误):

运维技术阿闯 发表于 2024-9-6 11:57:41

您好,这个是您项目的mysql模块与mysql不匹配导致的,应该是您mysql配置了是新的认证插件
升级一下您node.js的mysql库。
或者是您可以跟新一下您的mysql认证插件
页: [1]
查看完整版本: 【待反馈】node项目没办法运行