Skip to content

Commit 8fa0586

Browse files
committed
update doc to indicate privileges the user need
1 parent 990fc08 commit 8fa0586

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/examples.rst

+6
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ Examples
44

55
You can found a list of working examples here: https://github.com/noplay/python-mysql-replication/tree/master/examples
66

7+
PREREQUISITES
8+
9+
The user, you plan to use for the BinaryLogClient, must have REPLICATION SLAVE privilege. To get binlog filename and position, he must be granted at least one of REPLICATION CLIENT or SUPER as well. To get table info of mysql server, he also need SELECT privilege on information_schema.COLUMNS.
10+
We suggest grant below privileges to the user:
11+
12+
:command:`GRANT REPLICATION SLAVE, REPLICATION CLIENT, SELECT ON *.* TO 'user'@'host'`

0 commit comments

Comments
 (0)