signal18 / replication-manager

Signal 18 repman - Replication Manager for MySQL / MariaDB / Percona Server
https://signal18.io/products/srm
GNU General Public License v3.0
652 stars 167 forks source link

User must have REPLICATION CLIENT,SUPER,RELOAD privilege #461

Open zhituanchen opened 1 year ago

zhituanchen commented 1 year ago

Hi I got a error about the privilege: The current version: v2.2.32.How to solve it.thk! image

The user privileges list: root@localhost:3306(production)(none) 17:12:49>SELECT COALESCE(MAX(Select_priv),'N') as Select_priv, COALESCE(MAX(Process_priv),'N') as Process_priv, COALESCE(MAX(Super_priv),'N') as Super_priv, COALESCE(MAX(Repl_slave_priv),'N') as Repl_slave_priv, COALESCE(MAX(Repl_client_priv),'N') as Repl_client_priv, COALESCE(MAX(Reload_priv),'N') as Reload_priv FROM mysql.user WHERE user = 'dbadmin' AND host IN('mongodb-dev-master','10.0.0.231','%','10.0.0.231/255.0.0.0','10.0.0.231/255.255.0.0','10.0.0.231/255.255.255.0','10.%.%.%','10.0.%.%','10.0.0.%','10.%','10.0.%'); +-------------+--------------+------------+-----------------+------------------+-------------+ | Select_priv | Process_priv | Super_priv | Repl_slave_priv | Repl_client_priv | Reload_priv | +-------------+--------------+------------+-----------------+------------------+-------------+ | Y | Y | Y | Y | Y | Y | +-------------+--------------+------------+-----------------+------------------+-------------+ 1 row in set (0.01 sec)

root@localhost:3306(production)(none) 17:12:50>SELECT COALESCE(MAX(Select_priv),'N') as Select_priv, COALESCE(MAX(Process_priv),'N') as Process_priv, COALESCE(MAX(Super_priv),'N') as Super_priv, COALESCE(MAX(Repl_slave_priv),'N') as Repl_slave_priv, COALESCE(MAX(Repl_client_priv),'N') as Repl_client_priv, COALESCE(MAX(Reload_priv),'N') as Reload_priv FROM mysql.user WHERE user = 'repl_slave' AND host IN('10.0.0.162','10.0.0.162','%','10.0.0.162/255.0.0.0','10.0.0.162/255.255.0.0','10.0.0.162/255.255.255.0','10.%.%.%','10.0.%.%','10.0.0.%','10.%','10.0.%'); +-------------+--------------+------------+-----------------+------------------+-------------+ | Select_priv | Process_priv | Super_priv | Repl_slave_priv | Repl_client_priv | Reload_priv | +-------------+--------------+------------+-----------------+------------------+-------------+ | Y | Y | Y | Y | Y | Y | +-------------+--------------+------------+-----------------+------------------+-------------+ 1 row in set (0.00 sec)

grant REPLICATION CLIENT,SUPER,RELOAD on . to dbadmin@'%'; grant REPLICATION CLIENT,SUPER,RELOAD on . to dbadmin@'localhost'; grant REPLICATION CLIENT,SUPER,RELOAD on . to repl_slave@'%';

svaroqui commented 1 year ago

Pease make sure all the nodes get those privileges for both db-servers-credential and replication-credential user