Skip to content

Commit

Permalink
Merge pull request #163 from zhyass/script
Browse files Browse the repository at this point in the history
sidecar: fix [email protected] privileges #162
  • Loading branch information
andyli029 authored Aug 2, 2021
2 parents fff1968 + ad6c216 commit 0c76399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sidecar/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (cfg *Config) buildInitSql() []byte {
sql := fmt.Sprintf(`SET @@SESSION.SQL_LOG_BIN=0;
CREATE DATABASE IF NOT EXISTS %s;
DROP user IF EXISTS 'root'@'127.0.0.1';
GRANT ALL ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '%s';
GRANT ALL ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '%s' with grant option;
DROP user IF EXISTS '%s'@'%%';
GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO '%s'@'%%' IDENTIFIED BY '%s';
DROP user IF EXISTS '%s'@'%%';
Expand Down

0 comments on commit 0c76399

Please sign in to comment.