node.js - Error: Handshake inactivity timeout while using sails-mysql on macOS Sierra -


i've seen many answers yet i'm not able resolve issue. i'm using node 6.11.2, sails-mysql connect mysql xampp on macos sierra. i've tried increasing timeout in protocol.js nothing works.

error: hook (`orm`) failed load! error: error (e_unknown) :: encountered unexpected error : not connect mysql: error: handshake inactivity timeout @ afterwards (/users/shubham/vscode/hirexl/node_modules/sails-mysql/lib/connections/spawn.js:72:13) @ /users/shubham/vscode/hirexl/node_modules/sails-mysql/lib/connections/spawn.js:40:7 @ handshake.onconnect (/users/shubham/vscode/hirexl/node_modules/sails-mysql/node_modules/mysql/lib/pool.js:54:9) @ handshake.sequence.end (/users/shubham/vscode/hirexl/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/sequence.js:96:24) @ /users/shubham/vscode/hirexl/node_modules/sails-mysql/node_modules/mysql/lib/protocol/protocol.js:399:18 @ array.foreach (native) @ /users/shubham/vscode/hirexl/node_modules/sails-mysql/node_modules/mysql/lib/protocol/protocol.js:398:13 @ _combinedtickcallback (internal/process/next_tick.js:73:7) @ process._tickdomaincallback (internal/process/next_tick.js:128:9) 

this connections.js code

module.exports.connections = { localdiskdb: {     adapter: 'sails-disk' }, mysqlserver: {     adapter: 'sails-mysql',     host: '127.0.0.1',     database: 'hirexl_test_db',     user: 'root',     password:'' }, mysqltestserver: {     adapter: 'sails-mysql',     host: '127.0.0.1',     database: 'hirexl_test_db',     user: 'root',     password:'' } }; 

enter image description here

connections online image

enter image description here

localhost online image

can help?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -