Skip to content

Commit

Permalink
sidecar: fix [email protected] privileges radondb#162
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyass committed Aug 2, 2021
1 parent 01494b2 commit 3af6dc5
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 3af6dc5

Please sign in to comment.