Skip to content

Commit c228bcb

Browse files
authored
Merge pull request #370 from acekingke/fixBugMysqlErr
sidecar: sacle 2 to 3 ,mysql-operator restart #368
2 parents d9af38b + f5cf8ad commit c228bcb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sidecar/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ GRANT SUPER, PROCESS, RELOAD, CREATE, SELECT ON *.* TO '%s'@'%%' IDENTIFIED BY '
375375
DROP user IF EXISTS '%s'@'%%';
376376
GRANT ALL ON %s.* TO '%s'@'%%' IDENTIFIED BY '%s';
377377
FLUSH PRIVILEGES;
378+
RESET SLAVE ALL;
378379
`, cfg.Database, cfg.RootPassword, cfg.InternalRootPassword, cfg.ReplicationUser, cfg.ReplicationUser, cfg.ReplicationPassword,
379380
cfg.MetricsUser, cfg.MetricsUser, cfg.MetricsPassword, cfg.OperatorUser, cfg.OperatorUser,
380381
cfg.OperatorPassword, cfg.User, cfg.Database, cfg.User, cfg.Password)

0 commit comments

Comments
 (0)