Skip to content

Commit

Permalink
Adapt playground to M1 mac #3488
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Mar 5, 2023
1 parent d499a39 commit 5e252e4
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ccloud/connect-debezium-mysql-source/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3.5'
services:
mysql:
image: mysql:5.7
image: mysql:latest
hostname: mysql
container_name: mysql
volumes:
Expand Down
10 changes: 6 additions & 4 deletions ccloud/connect-debezium-mysql-source/mysql-init.sql
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'@'%';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3.5'
services:
mysql:
image: mysql:5.7
image: mysql:latest
hostname: mysql
container_name: mysql
volumes:
Expand Down
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'@'%';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3.5'
services:
mysql:
image: mysql:5.7
image: mysql:latest
hostname: mysql
container_name: mysql
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3.5'
services:
mysql:
image: mysql:5.7
image: mysql:latest
hostname: mysql
container_name: mysql
volumes:
Expand Down
10 changes: 6 additions & 4 deletions connect/connect-debezium-mysql-source/mysql-init.sql
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'@'%';

0 comments on commit 5e252e4

Please sign in to comment.