I'm setting up a 3 nodes (MariaDB 10.4) Galera cluster with 2 frontal servers.
Inside each of these frontal servers there is also a Maxscale 6 daemon.
[listener]
type=listener
service=readwritesplit
protocol=MariaDBClient
address=127.0.0.1
port=3306
All of these servers are inside the 10.1.0.0/24
network.
At MariaDB, I've created users like CREATE USER 'user'@'10.1.0.%'
but these can't authenticate.
Authentication failed for user 'user'@[127.0.0.1] to service 'readwritesplit'. Originating listener: 'listener'. MariaDB error: 'Access denied for user 'user'@'127.0.0.1' (using password: YES)'.
So I've RENAME 'user'@'10.1.0.%' TO 'user'@'127.0.0.1'
. Another authentication error.
maxscale[1109436]: Authentication to 'node1' failed: 1045, #28000: Access denied for user 'user'@'frontal1' (using password: YES)
I ended up to RENAME 'user'@'10.1.0.%' TO 'user'@'%'
. All fine here of course.
As long as all servers are on the 10.1.0.%
network, why users 'user'@'10.1.0.%'
can't authenticate?