REPLICATION SLAVE 與 REPLICATION CLIENT 許可權
測試的版本為5.6.30
REPLICATION SLAVE 常用於建立複製時所需要用到的使用者許可權,也就是slave server必須被master server授權具有該許可權的使用者,才能透過該使用者複製。
並且"SHOW SLAVE HOSTS"這條命令和REPLICATION SLAVE許可權有關,否則執行時會報錯:
ERROR 1227 (42000): Access denied; you need (at least one of) the REPLICATION SLAVE privilege(s) for this operation
在5.6.6版本以後,也可以使用"SHOW BINARY LOGS"。
原文:
- 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.
- 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.
參考文獻:
MySQL 5.6 Reference Manual - 6.2.1 Privileges Provided by MySQL
作者微信公眾號(持續更新)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29773961/viewspace-2127425/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【MySQL】Slave can not handle replication events with the checksum ...MySql
- replication 1064 error on slave sideErrorIDE
- Setup MariaDB Master/Slave Replication for Docker MariaDBASTDocker
- [ERROR] Slave I/O: Replication event checksum Error_code: 1743Error
- Mysql 建立心跳錶來監控Replication的Slave是否延遲MySql
- 【MongoDB】主從複製(Master-Slave Replication)簡單實現MongoDBAST
- 實戰11g stream replication之table replication
- MySQL主從同步報Client requested master to start replication from positionMySql主從同步clientAST
- MySQL Group ReplicationMySql
- Build mysql replicationUIMySql
- Mysql Replication(轉)MySql
- HBase Replication詳解
- MySQL案例-replication"卡死"MySql
- 【MySQL】Semisynchronous Replication 概述MySql
- MySQL Replication淺析MySql
- On MySQL replication, again…MySqlAI
- MySQL 5.7複製報錯Client requested master to start replication from impossibleMySqlclientAST
- An Overview of PostgreSQL & MySQL Cross ReplicationViewMySqlROS
- Mysql replication check指令碼MySql指令碼
- MySQL group replication介紹MySql
- MySQL Group Replication小試MySql
- Oracle Stream Replication 技術Oracle
- mysql replication之GTIDMySql
- Oracle的物件許可權、角色許可權、系統許可權Oracle物件
- Django(63)drf許可權原始碼分析與自定義許可權Django原始碼
- 許可權之選單許可權
- DB2許可權與授權DB2
- How to Optimize PostgreSQL Logical ReplicationSQL
- Redis 主從複製(Replication)Redis
- Redis replication 中的探活Redis
- Mysql Replication學習記錄MySql
- Redis 主從 Replication 的配置Redis
- 理解 MySQL(3):複製(Replication)MySql
- MySQL now supports an interface for semisynchronous replication:MySql
- MySQL Replication ConfigurationMySql
- mysql replication常見錯誤MySql
- 如何用 Vue 實現前端許可權控制(路由許可權 + 檢視許可權 + 請求許可權)Vue前端路由
- linux 檔案許可權 s 許可權和 t 許可權解析Linux