You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A MySQL user must be defined with all the following permissions on any database which wants to be replicated:
39
39
**SELECT**, **RELOAD**, **SHOW DATABASES**, **REPLICATION SLAVE** and **REPLICATION CLIENT**.
40
40
```
41
-
mysql> CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
42
-
mysql> GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'user' IDENTIFIED WITH mysql_native_password BY 'password';
41
+
mysql> CREATE USER 'user'@'%' IDENTIFIED BY 'password';
42
+
mysql> GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'user'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
43
43
mysql> FLUSH PRIVILEGES;
44
44
```
45
45
@@ -64,7 +64,8 @@ slave that is replicating from the server.
64
64
65
65
**Server Timezone:** Timezone of the MySQL server. This is used when converting dates into timestamps.
66
66
67
-
**User:** Username to use to connect to the MySQL server.
67
+
**User:** Username to use to connect to the MySQL server. Actual account used by the source while connecting
68
+
to the MySQL server will be of the form 'user_name'@'%' where user_name is this field.
68
69
69
70
**Password:** Password to use to connect to the MySQL server.
0 commit comments