Mysql连接错误:错误:数据包乱序。得到:45预期:0

时间:2018-05-29 10:50:35

标签: mysql node.js connection connect remote-server

我的情况类似于 - Packets out of order. Got: 80 Expected: 0 node.js(没有解决方案)。在本地计算机上正常工作但在虚拟机上失败。

代码如下:

var connection = mysql.createConnection({
        host     : "xxxxx",
        port     : 22,
        user     : "root",
        password : "root",
        database : "db"
    });

错误如下:

  

错误:数据包乱序。得到:45预期:0       在Parser.write(/home/webdev/PM/LT/node_modules/mysql/lib/protocol/Parser.js:42:19)       在Protocol.write(/home/webdev/PM/LT/node_modules/mysql/lib/protocol/Protocol.js:39:16)       在Socket。 (/home/webdev/PM/LT/node_modules/mysql/lib/Connection.js:103:28)       在emitOne(events.js:116:13)       在Socket.emit(events.js:211:7)       在addChunk(_stream_readable.js:263:12)       在readableAddChunk(_stream_readable.js:250:11)       在Socket.Readable.push(_stream_readable.js:208:10)       在TCP.onread(net.js:607:20)       --------------------       在Protocol._enqueue(/home/webdev/PM/LT/node_modules/mysql/lib/protocol/Protocol.js:145:48)       在Protocol.handshake(/home/webdev/PM/LT/node_modules/mysql/lib/protocol/Protocol.js:52:23)       在Connection.connect(/home/webdev/PM/LT/node_modules/mysql/lib/Connection.js:130:18)       在/home/webdev/PM/LT/server.js:1147:13       在Layer.handle [as handle_request](/home/webdev/PM/LT/node_modules/express/lib/router/layer.js:76:5)       在下一个(/home/webdev/PM/LT/node_modules/express/lib/router/route.js:100:13)       在Route.dispatch(/home/webdev/PM/LT/node_modules/express/lib/router/route.js:81:3)       在Layer.handle [as handle_request](/home/webdev/PM/LT/node_modules/express/lib/router/layer.js:76:5)       at /home/webdev/PM/LT/node_modules/express/lib/router/index.js:234:24       在Function.proto.process_params(/home/webdev/PM/LT/node_modules/express/lib/router/index.js:312:12)

由于这个错误,我对客户的工作已经停顿,因此最早请求解决方案。谢谢。

0 个答案:

没有答案