溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

REPLICATION SLAVE 與 REPLICATION CLIENT 權(quán)限

發(fā)布時(shí)間:2020-08-08 12:44:58 來源:ITPUB博客 閱讀:786 作者:神諭丶 欄目:MySQL數(shù)據(jù)庫

測試的版本為5.6.30

REPLICATION SLAVE 常用于建立復(fù)制時(shí)所需要用到的用戶權(quán)限,也就是slave server必須被master server授權(quán)具有該權(quán)限的用戶,才能通過該用戶復(fù)制。
并且"SHOW SLAVE HOSTS
"這條命令和REPLICATION SLAVE權(quán)限有關(guān),否則執(zhí)行時(shí)會(huì)報(bào)錯(cuò):
  
ERROR 1227 (42000): Access denied; you need (at least one of) the REPLICATION SLAVE privilege(s) for this operation
REPLICATION CLIENT 不可用于建立復(fù)制,有該權(quán)限時(shí),只是多了可以使用如"SHOW SLAVE STATUS"、"SHOW MASTER STATUS"等命令。
在5.6.6版本以后,也可以使用"
SHOW BINARY LOGS"。


原文:
  1. The REPLICATION CLIENT privilege enables the use of SHOW MASTER STATUS and SHOW SLAVE STATUS. In MySQL 5.6.6 and later, it also enables the use of the SHOW BINARY LOGS statement.
  2. The REPLICATION SLAVE privilege should be granted to accounts that are used by slave servers to connect to the current server as their master. Without this privilege, the slave cannot request updates that have been made to databases on the master server.



參考文獻(xiàn): 
MySQL 5.6 Reference Manual - 6.2.1 Privileges Provided by MySQL


作者微信公眾號(hào)(持續(xù)更新)
REPLICATION SLAVE 與 REPLICATION CLIENT 權(quán)限
向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI