所以我的朋友让我将他的vps用于我的机器人,我做了一个远程sql,所以不要说这是因为我没有连接我的sql,这已经发生了3次,已经在尝试为此找到一个解决方法。
这是我在腻子中得到的错误代码
[2019-09-14 14:21:08]: ERROR Uncaught Exception: Error: Connection lost: The server closed the connection.
at Protocol.end (/home/denty/neko-bot/node_modules/mysql/lib/protocol/Protocol.js:112:13)
at Socket.<anonymous> (/home/denty/neko-bot/node_modules/mysql/lib/Connection.js:97:28)
at Socket.<anonymous> (/home/denty/neko-bot/node_modules/mysql/lib/Connection.js:525:10)
at Socket.emit (events.js:214:15)
at endReadableNT (_stream_readable.js:1178:12)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
所以在我的节点索引之后大约30-40分钟,我得到了该错误 是的,我是vps的新手,所以对我轻松一点
编辑:好的,所以我做到了,但仍然无法正常工作,这是我收到的新错误
PROTOCOL_CONNECTION_LOST
db error Error: Connection lost: The server closed the connection.
at Protocol.end (/home/denty/neko-bot/node_modules/mysql/lib/protocol/Protocol.js:112:13)
at Socket.<anonymous> (/home/denty/neko-bot/node_modules/mysql/lib/Connection.js:97:28)
at Socket.<anonymous> (/home/denty/neko-bot/node_modules/mysql/lib/Connection.js:525:10)
at Socket.emit (events.js:214:15)
at endReadableNT (_stream_readable.js:1178:12)
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
fatal: true,
code: 'PROTOCOL_CONNECTION_LOST'
}
[2019-09-14 15:20:51]: ERROR Uncaught Exception: Error: Cannot enqueue Query after fatal error.
at Protocol._validateEnqueue (/home/denty/neko-bot/node_modules/mysql/lib/protocol/Protocol.js:212:16)
at Protocol._enqueue (/home/denty/neko-bot/node_modules/mysql/lib/protocol/Protocol.js:138:13)
at Connection.query (/home/denty/neko-bot/node_modules/mysql/lib/Connection.js:201:25)
at Client.<anonymous> (/home/denty/neko-bot/index_1.js:186:9)
at Client.emit (events.js:214:15)
at MessageCreateHandler.handle (/home/denty/neko-bot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
at WebSocketPacketManager.handle (/home/denty/neko-bot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
at WebSocketConnection.onPacket (/home/denty/neko-bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (/home/denty/neko-bot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)