From 3814b2a602e83641a8f8305ab0ffce9642516e57 Mon Sep 17 00:00:00 2001 From: Dirkjan Bussink Date: Thu, 2 May 2024 20:40:49 +0200 Subject: [PATCH] mysqlctld: Remove unneeded resets in init_db.sql (#15832) Signed-off-by: Dirkjan Bussink --- config/init_db.sql | 3 --- examples/compose/config/init_db.sql | 3 --- examples/operator/101_initial_cluster.yaml | 3 --- .../vreplication/testdata/config/init_testserver_db.sql | 3 --- 4 files changed, 12 deletions(-) diff --git a/config/init_db.sql b/config/init_db.sql index 392053baade..25ea2a42f3a 100644 --- a/config/init_db.sql +++ b/config/init_db.sql @@ -70,9 +70,6 @@ GRANT SELECT, PROCESS, SUPER, REPLICATION CLIENT, RELOAD GRANT SELECT, UPDATE, DELETE, DROP ON performance_schema.* TO 'vt_monitoring'@'localhost'; -RESET SLAVE ALL; -RESET MASTER; - # custom sql is used to add custom scripts like creating users/passwords. We use it in our tests # {{custom_sql}} diff --git a/examples/compose/config/init_db.sql b/examples/compose/config/init_db.sql index 1de631d2adb..b567faf1722 100644 --- a/examples/compose/config/init_db.sql +++ b/examples/compose/config/init_db.sql @@ -69,9 +69,6 @@ GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, FILE, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER ON *.* TO 'vt_filtered'@'localhost'; -RESET SLAVE ALL; -RESET MASTER; - # custom sql is used to add custom scripts like creating users/passwords. We use it in our tests # {{custom_sql}} diff --git a/examples/operator/101_initial_cluster.yaml b/examples/operator/101_initial_cluster.yaml index 8550b71d1ae..2fc7ebe6a92 100644 --- a/examples/operator/101_initial_cluster.yaml +++ b/examples/operator/101_initial_cluster.yaml @@ -212,9 +212,6 @@ stringData: SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER ON *.* TO 'vt_filtered'@'localhost'; - RESET SLAVE ALL; - RESET MASTER; - # custom sql is used to add custom scripts like creating users/passwords. We use it in our tests # {{custom_sql}} diff --git a/go/test/endtoend/vreplication/testdata/config/init_testserver_db.sql b/go/test/endtoend/vreplication/testdata/config/init_testserver_db.sql index 89998b856b5..fc78f6b414a 100644 --- a/go/test/endtoend/vreplication/testdata/config/init_testserver_db.sql +++ b/go/test/endtoend/vreplication/testdata/config/init_testserver_db.sql @@ -79,8 +79,5 @@ GRANT SELECT, PROCESS, SUPER, REPLICATION CLIENT, RELOAD GRANT SELECT, UPDATE, DELETE, DROP ON performance_schema.* TO 'vt_monitoring'@'localhost'; -RESET REPLICA ALL; -RESET MASTER; - # custom sql is used to add custom scripts like creating users/passwords. We use it in our tests # {{custom_sql}}