Skip to content

Issue with Load Balancer - HAProxy, PorxySQL #202

@mineexchange89

Description

@mineexchange89

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions