Hi friends
I have a hostinger MySQL live server and I have a react native cli project with the backend is Nodejs with MySQL. Problem is when i connect Nodejs with localhost MySQL then its properly work fine but when i connect Nodejs with live server then error occur
Help me to remove this error
Server is running on http://localhost:5000
Connected to MySQL database.
node:events:492
throw er; // Unhandled ‘error’ event
^
Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
Emitted ‘error’ event on Connection instance at:
at Connection._handleProtocolError (D:ReactNativeProjectsClickLife ProjectServernode_modulesmysqllibConnection.js:423:8)
at Protocol.emit (node:events:514:28)
at Protocol._delegateError (D:ReactNativeProjectsClickLife ProjectServernode_modulesmysqllibprotocolProtocol.js:398:10)
at Protocol.handleNetworkError (D:ReactNativeProjectsClickLife ProjectServernode_modulesmysqllibprotocolProtocol.js:371:10)
at Connection._handleNetworkError (D:ReactNativeProjectsClickLife ProjectServernode_modulesmysqllibConnection.js:418:18)
at Socket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4077,
code: ‘ECONNRESET’,
syscall: ‘read’,
fatal: true
}
Node.js v20.9.0
[nodemon] app crashed – waiting for file changes before starting…
I have a hostinger MySQL live server and I have a react native cli project with the backend is Nodejs with MySQL. Problem is when i connect Nodejs with localhost MySQL then its properly work fine but when i connect Nodejs with live server then error occur
Help me to remove this error
user24990591 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.