Skip to content

Commit 659e9fc

Browse files
AMeceacalind
authored andcommitted
Fix metrics exporter user restriction to localhost
1 parent e1aa7f0 commit 659e9fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/sidecar/apphelper.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ func configureExporterUser(cfg *Config) error {
136136
query := `
137137
SET @@SESSION.SQL_LOG_BIN = 0;
138138
139-
CREATE USER IF NOT EXISTS ?@'localhost';
140-
ALTER USER ?@'localhost' IDENTIFIED BY ? WITH MAX_USER_CONNECTIONS 3;
139+
CREATE USER IF NOT EXISTS ?@'127.0.0.1';
140+
ALTER USER ?@'127.0.0.1' IDENTIFIED BY ? WITH MAX_USER_CONNECTIONS 3;
141141
142-
GRANT SELECT, PROCESS, REPLICATION CLIENT ON *.* TO ?@'localhost';
142+
GRANT SELECT, PROCESS, REPLICATION CLIENT ON *.* TO ?@'127.0.0.1';
143143
`
144144

145145
user := cfg.MetricsUser

0 commit comments

Comments
 (0)