收藏
回答

云托管链接mysql数据库失败?UNKNOWN_CODE_PLEASE_REPORT

云托管部署的nodejs服务,数据库也是云托管开通的mysql,链接使用的mysql账号是root,内网ip和外网地址均尝试过。都报错,但是在本地使用外网地址是可以连接上的。

报错内容为:errError: UNKNOWN_CODE_PLEASE_REPORT: CynosDB serverless instance is resuming, please try connecting again

10/02 03:13:50
push-008
errError: UNKNOWN_CODE_PLEASE_REPORT: CynosDB serverless instance is resuming, please try connecting again
10/02 03:13:50
push-008
    at Handshake.Sequence._packetToError (/usr/src/app/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
10/02 03:13:50
push-008
    at Handshake.ErrorPacket (/usr/src/app/node_modules/mysql/lib/protocol/sequences/Handshake.js:123:18)
10/02 03:13:50
push-008
    at Parser._parsePacket (/usr/src/app/node_modules/mysql/lib/protocol/Parser.js:433:10)
10/02 03:13:50
push-008
    at Socket.<anonymous> (/usr/src/app/node_modules/mysql/lib/Connection.js:88:28)
10/02 03:13:50
push-008
    at Socket.<anonymous> (/usr/src/app/node_modules/mysql/lib/Connection.js:526:10)
10/02 03:13:50
push-008
    at addChunk (_stream_readable.js:297:12)
10/02 03:13:50
push-008
    at Protocol._enqueue (/usr/src/app/node_modules/mysql/lib/protocol/Protocol.js:144:48)
10/02 03:13:50
push-008
    at Protocol.handshake (/usr/src/app/node_modules/mysql/lib/protocol/Protocol.js:51:23)
10/02 03:13:50
push-008
    at Object.<anonymous> (/usr/src/app/server/connection.js:11:4)
10/02 03:13:50
push-008
    at Module._compile (internal/modules/cjs/loader.js:999:30)
10/02 03:13:50
push-008
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
10/02 03:13:50
push-008
    at Module.load (internal/modules/cjs/loader.js:863:32)
10/02 03:13:50
push-008
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
10/02 03:13:50
push-008
    at require (internal/modules/cjs/helpers.js:74:18)
10/02 03:13:50
push-008
> knative-serving-helloworld@1.0.0 start /usr/src/app
10/02 03:13:50
push-008
> node index.js
10/02 03:13:50
push-008
10/02 03:13:50
push-008
Hello world listening on port 80
10/02 03:13:50
push-008
    at Protocol._parsePacket (/usr/src/app/node_modules/mysql/lib/protocol/Protocol.js:291:23)
10/02 03:13:50
push-008
    at Parser.write (/usr/src/app/node_modules/mysql/lib/protocol/Parser.js:43:10)
10/02 03:13:50
push-008
    at Protocol.write (/usr/src/app/node_modules/mysql/lib/protocol/Protocol.js:38:16)
10/02 03:13:50
push-008
    at Socket.emit (events.js:314:20)
10/02 03:13:50
push-008
    --------------------
10/02 03:13:50
push-008
    at Connection.connect (/usr/src/app/node_modules/mysql/lib/Connection.js:116:18)
10/02 03:13:50
push-008
    at Module.require (internal/modules/cjs/loader.js:887:19)


最后一次编辑于  2021-10-02
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容