-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'replicator' IDENTIFIED BY 'replpass'; | ||
|
||
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'debezium' IDENTIFIED BY 'dbz'; | ||
CREATE USER 'repl'@'localhost' IDENTIFIED BY 'password'; | ||
GRANT REPLICATION SLAVE ON *.* TO 'repl'@'localhost'; | ||
|
||
CREATE USER 'debezium'@'%' IDENTIFIED WITH mysql_native_password BY 'dbz'; | ||
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'debezium'@'%'; | ||
FLUSH PRIVILEGES; | ||
|
||
CREATE DATABASE mydb; | ||
|
||
GRANT ALL PRIVILEGES ON mydb.* TO 'user'@'%'; | ||
GRANT ALL PRIVILEGES ON mydb.* TO 'debezium'@'%'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
ccloud/fully-managed-connect-debezium-mysql-source/mysql-init.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'replicator' IDENTIFIED BY 'replpass'; | ||
|
||
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'debezium' IDENTIFIED BY 'dbz'; | ||
CREATE USER 'repl'@'localhost' IDENTIFIED BY 'password'; | ||
GRANT REPLICATION SLAVE ON *.* TO 'repl'@'localhost'; | ||
|
||
CREATE USER 'debezium'@'%' IDENTIFIED WITH mysql_native_password BY 'dbz'; | ||
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'debezium'@'%'; | ||
FLUSH PRIVILEGES; | ||
|
||
CREATE DATABASE mydb; | ||
|
||
GRANT ALL PRIVILEGES ON mydb.* TO 'user'@'%'; | ||
GRANT ALL PRIVILEGES ON mydb.* TO 'debezium'@'%'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'replicator' IDENTIFIED BY 'replpass'; | ||
|
||
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'debezium' IDENTIFIED BY 'dbz'; | ||
CREATE USER 'repl'@'localhost' IDENTIFIED BY 'password'; | ||
GRANT REPLICATION SLAVE ON *.* TO 'repl'@'localhost'; | ||
|
||
CREATE USER 'debezium'@'%' IDENTIFIED WITH mysql_native_password BY 'dbz'; | ||
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'debezium'@'%'; | ||
FLUSH PRIVILEGES; | ||
|
||
CREATE DATABASE mydb; | ||
|
||
GRANT ALL PRIVILEGES ON mydb.* TO 'user'@'%'; | ||
GRANT ALL PRIVILEGES ON mydb.* TO 'debezium'@'%'; |