Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
untied opened this issue Jul 21, 2016 · 3 comments
Open

Comments

@untied
Copy link

untied commented Jul 21, 2016

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

@mscdex
Copy link
Owner

mscdex commented Jul 21, 2016

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

@untied
Copy link
Author

untied commented Jul 21, 2016

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.

@mscdex
Copy link
Owner

mscdex commented Jul 21, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants