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

Issue with Load Balancer - HAProxy, PorxySQL #202

Open
mineexchange89 opened this issue Oct 8, 2018 · 0 comments
Open

Issue with Load Balancer - HAProxy, PorxySQL #202

mineexchange89 opened this issue Oct 8, 2018 · 0 comments

Comments

@mineexchange89
Copy link

Hello Team,

I am trying to connect MariaDB database via load balancer but getting below error.

node -v
v8.11.3
node mariasql_demo.js
events.js:183
      throw er; // Unhandled 'error' event
     ^
Error: Host '192.168.5.13' is not allowed to connect to this MariaDB server

Code :

var Client = require('mariasql');
var c = new Client({
  host: "xxx.xxx.xxx.xxx",
  port: "3307",
  database: "test_db",
  user: "test_usr",
  password: "******"
});
c.query('SHOW DATABASES', function(err, rows) {
  if (err)
    throw err;
  console.dir(rows);
});
c.end();

And when i am trying with mysql its working fine with load balncer.

@mineexchange89 mineexchange89 changed the title Issue with Load Balancer - HAProxy, PorsySQL Issue with Load Balancer - HAProxy, PorxySQL Oct 8, 2018
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

1 participant