From 5e252e4cf8da261178bb4a12841a856eb7ac6ff2 Mon Sep 17 00:00:00 2001 From: Vincent de Saboulin Date: Sun, 5 Mar 2023 22:26:58 +0100 Subject: [PATCH] Adapt playground to M1 mac #3488 --- .../connect-debezium-mysql-source/docker-compose.yml | 2 +- ccloud/connect-debezium-mysql-source/mysql-init.sql | 10 ++++++---- .../docker-compose.yml | 2 +- .../mysql-init.sql | 10 ++++++---- .../docker-compose.plaintext-ro-inc-snapshot.yml | 2 +- .../docker-compose.plaintext.yml | 2 +- connect/connect-debezium-mysql-source/mysql-init.sql | 10 ++++++---- 7 files changed, 22 insertions(+), 16 deletions(-) diff --git a/ccloud/connect-debezium-mysql-source/docker-compose.yml b/ccloud/connect-debezium-mysql-source/docker-compose.yml index 6e9e9e539..8fe629ed3 100644 --- a/ccloud/connect-debezium-mysql-source/docker-compose.yml +++ b/ccloud/connect-debezium-mysql-source/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.5' services: mysql: - image: mysql:5.7 + image: mysql:latest hostname: mysql container_name: mysql volumes: diff --git a/ccloud/connect-debezium-mysql-source/mysql-init.sql b/ccloud/connect-debezium-mysql-source/mysql-init.sql index fbb18dd67..0a8d97a8c 100644 --- a/ccloud/connect-debezium-mysql-source/mysql-init.sql +++ b/ccloud/connect-debezium-mysql-source/mysql-init.sql @@ -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'@'%'; diff --git a/ccloud/fully-managed-connect-debezium-mysql-source/docker-compose.yml b/ccloud/fully-managed-connect-debezium-mysql-source/docker-compose.yml index af7e69064..f5498db9d 100644 --- a/ccloud/fully-managed-connect-debezium-mysql-source/docker-compose.yml +++ b/ccloud/fully-managed-connect-debezium-mysql-source/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.5' services: mysql: - image: mysql:5.7 + image: mysql:latest hostname: mysql container_name: mysql volumes: diff --git a/ccloud/fully-managed-connect-debezium-mysql-source/mysql-init.sql b/ccloud/fully-managed-connect-debezium-mysql-source/mysql-init.sql index 041adeb8b..0a8d97a8c 100644 --- a/ccloud/fully-managed-connect-debezium-mysql-source/mysql-init.sql +++ b/ccloud/fully-managed-connect-debezium-mysql-source/mysql-init.sql @@ -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'@'%'; \ No newline at end of file +GRANT ALL PRIVILEGES ON mydb.* TO 'debezium'@'%'; diff --git a/connect/connect-debezium-mysql-source/docker-compose.plaintext-ro-inc-snapshot.yml b/connect/connect-debezium-mysql-source/docker-compose.plaintext-ro-inc-snapshot.yml index 971b4a675..d8b8ccc06 100644 --- a/connect/connect-debezium-mysql-source/docker-compose.plaintext-ro-inc-snapshot.yml +++ b/connect/connect-debezium-mysql-source/docker-compose.plaintext-ro-inc-snapshot.yml @@ -2,7 +2,7 @@ version: '3.5' services: mysql: - image: mysql:5.7 + image: mysql:latest hostname: mysql container_name: mysql volumes: diff --git a/connect/connect-debezium-mysql-source/docker-compose.plaintext.yml b/connect/connect-debezium-mysql-source/docker-compose.plaintext.yml index c0bd9bc63..685cc57f6 100644 --- a/connect/connect-debezium-mysql-source/docker-compose.plaintext.yml +++ b/connect/connect-debezium-mysql-source/docker-compose.plaintext.yml @@ -2,7 +2,7 @@ version: '3.5' services: mysql: - image: mysql:5.7 + image: mysql:latest hostname: mysql container_name: mysql volumes: diff --git a/connect/connect-debezium-mysql-source/mysql-init.sql b/connect/connect-debezium-mysql-source/mysql-init.sql index fbb18dd67..0a8d97a8c 100644 --- a/connect/connect-debezium-mysql-source/mysql-init.sql +++ b/connect/connect-debezium-mysql-source/mysql-init.sql @@ -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'@'%';