I am using sails-mysql node module for mysql connection. It is working fine in centos 6.5 environment. But same code i cloned in different machine its giving this error might be mamp port issue?
events.js:141 throw er; // Unhandled 'error' event ^
Error: Cannot enqueue Quit after invoking quit.
/node_modules/mysql/lib/Connection.js:103:28) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at readableAddChunk (_stream_readable.js:153:18) at Socket.Readable.push (_stream_readable.js:111:10) at Pipe.onread (net.js:540:20)
Mysql connection
mysql: { adapter: 'sails-mysql', host: 'localhost', user: 'root', //optional password: 'root', //optional database: 'database_test', //optional port: '/Applications/MAMP/tmp/mysql/mysql.sock'
},
Thanks
via Jackson Harry
No comments:
Post a Comment