i have setup two nodes for mariadb galera system
192.168.56.x <= Mariadb galera cluster
192.168.56.y <= Mariadb galera cluster
192.168.56.z <= maxscale server
192.168.56.a <= Client system ( Aegir hostmaster i have installed )
I have installed aegir hosting system on client machine 192.168.56.a,
I have enable root access via maxscale to backend db, When my client going to connect and create site through maxscale, i always get below error
info : [readconnroute] Routed [MYSQL_COM_QUERY] to 'vagrant': GRANT ALL PRIVILEGES ON `test3storeship_0`.* TO `test3`@`127.0.0.1` IDENTIFIED BY 'wdxGDt7YUc'
info : [readconnroute] Routed [MYSQL_COM_QUERY] to 'vagrant': GRANT ALL PRIVILEGES ON `test3storeship_0`.* TO `test3`@`127.0.0.1` IDENTIFIED BY 'wdxGDt7YUc'
info : [readconnroute] Routed [MYSQL_COM_QUERY] to 'vagrant': GRANT ALL PRIVILEGES ON `test3storeship_0`.* TO `test3`@`192.168.56.102` IDENTIFIED BY 'wdxGDt7YUc'
error : [Galera Service] Refresh rate limit exceeded for load of users' table.
warning: [MySQLAuth] Galera Service: login attempt for user 'root'@[192.168.56.a]:37377, authentication failed.
error : [Galera Service] Refresh rate limit exceeded for load of users' table.
warning: [MySQLAuth] Galera Service: login attempt for user 'root'@[192.168.56.a]:37378, authentication failed.
error : [Galera Service] Refresh rate limit exceeded for load of users' table.
warning: [MySQLAuth] Galera Service: login attempt for user 'root'@[192.168.56.a]:37379, authentication failed.
error : [Galera Service] Refresh rate limit exceeded for load of users' table.
able.
Any clue on it ?
Hi,
The authentication failed messages are logged by MaxScale when it sees that there's no correct grant for the connecting client. This usually means that you lack a grant or have not created a user for both the client IP and MaxScale IP. Make sure both 192.168.56.z and 192.168.56.a have the same grants and users.
Markus
-- Markus Mäkelä, Software Engineer MariaDB Corporation t: +358 40 7740484 | Skype: markus.j.makela
Hi,
The grants do look correct. Here's what I would do:
Go to 192.168.56.a and execute: mysql -uroot -p
-h 192.168.56.x -e "SELECT 1"
Go to 192.168.56.z and execute: mysql -uroot -p -h 192.168.56.x -e "SELECT 1"
If you can successfully connect to the server from both the client host and MaxScale host using the command line client, then we know the grants are OK. Then if connecting to MaxScale fails, we have a problem somewhere in MaxScale. In this case, I would suggest that you open a bug report on the MaxScale Jira: https://jira.mariadb.org/browse/MXS
Another thing you could try is to use a root@% user instead of
two users for individual IPs. This could show if there's something
wrong in how MaxScale interprets the grants and how the
authentication is done in MaxScale.
Markus
Hi,
I think this might be a bug of some sorts unless the enable_root_user parameter is somehow turned off or not set to true. If you have enabled the parameter for the services in MaxScale and it still does not work, please open a bug report on the MariaDB Jira and attach your maxscale.cnf and MaxScale logs with all sensitive information removed.
Another option would be to create a different user, grant it all
privileges and use that for the user creation. Something like the
following should create a user equivalent to root: GRANT ALL
ON *.* TO my-user@xyz WITH GRANT
OPTION
Markus
Hi markus
I have verified grants on client system and maxscale host
=> From client host
ro...@192.168.56.a> mysql -h 192.168.56.x -u root -pxxxxx -e "SELECT 1";+---+| 1 |+---+| 1 |+---+ro...@192.168.56.a> > mysql -h 192.168.56.x -P 3306 -u root -pxxxxx -e "SELECT 1";+---+| 1 |+---+| 1 |+---+
=> From Maxscale installed host
ro...@192.168.56.z > mysql -h 192.168.56.x -u root -pxxxxx -e "SELECT 1";+---+| 1 |+---+| 1 |+---+
See client app going to create website using root access.so it';s connect client through maxscale host '192.168.56.z'i.e xyz.com then it first create user and grants to db xyz. likethen create db with name xyz and then importing structure
but as said it's seems every time said authentication failed with ro...@192.168.56.z and reload user table.