node-mariasql icon indicating copy to clipboard operation
node-mariasql copied to clipboard

Port #3306 is always used regardless to a port number specified in config

Open untied opened this issue 9 years ago • 3 comments

Just as I say: no matter which port you specify in config. The module always connects to the port #3306.

untied avatar Jul 21 '16 21:07 untied

Are you passing a string for the port property, or does typeof port === 'number'?

mscdex avatar Jul 21 '16 21:07 mscdex

var c = new Client({ host: 'localhost', user: 'foo', password: 'bar', port: 3308 });

I have MySQL running on port #3306 and MariaDB on port #3308. So I've got weird errors when trying to connect. Turning on logging in MariaDB showed that no connection attempts to port #3308 were detected.

untied avatar Jul 21 '16 22:07 untied

It works for me, I even double-checked with strace. I'm not sure why you're having an issue.... Are you using the latest version of mariasql?

mscdex avatar Jul 21 '16 23:07 mscdex