1) SHOW MASTER STATUS語句改名爲SHOW BINLOG STATUS 2) REPLICATION CLIENT權限改名爲BINLOG MONITOR 3) SHOW BINLOG EVENTS語句須要BINLOG MONITOR權限 4) SHOW SLAVE HOSTS語句須要REPLICATION MASTER ADMIN權限 5) SHOW SLAVE STATUS語句須要REPLICATION SLAVE ADMIN和SUPER權限 6) SHOW RELAYLOG EVENTS語句須要REPLICATION SLAVE ADMIN權限
例如,在以前的版本,搭建主從複製,賦予帳號權限一般是bash
GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'repl'@'%' IDENTIFIED BY 'repl';
MariaDB 10.5版本里,改成:ide
GRANT REPLICATION SLAVE, REPLICATION SLAVE ADMIN, REPLICATION MASTER ADMIN, REPLICATION SLAVE ADMIN, BINLOG MONITOR, SUPER ON *.* TO 'repl'@'%' IDENTIFIED BY 'repl';