whenn i run nodejs I got this error after 1 minutes
this is full error message mesage
30 Mar 10:48:01 - [nodemon] to restart at any time, enter `rs`
30 Mar 10:48:01 - [nodemon] watching: *.*
30 Mar 10:48:01 - [nodemon] starting `node NotificationServer.js`
Express server listening on port 3000
Error: Connection lost: The server closed the connection.
at Protocol.end (F:\atiralCloudNotification\node_modules\mysql\lib\protocol\ Protocol.js:78:13)
at Socket.<anonymous> (F:\atiralCloudNotification\node_modules\mysql\lib\Con
nection.js:79:28)
at Socket.emit (events.js:117:20)
at _stream_readable.js:943:16
at process._tickCallback (node.js:419:13)
at process._tickCallback (node.js:419:13) 30 Mar 10:49:06 - [nodemon] app crashed - waiting for file changes before starting...
my code is
atiralApp.use( connection(mysql,
host: configuration.databaseHostName,
user: configuration.databaseUser,
password : configuration.databasePassword,
port : configuration.databasePort, //port mysql
database:configuration.databaseDatabaseName
},'pool')
);
Aucun commentaire:
Enregistrer un commentaire