Skip to content

Commit

Permalink
fix: update exporter user hostnames
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Dec 29, 2024
1 parent 3c18d69 commit 6f29b30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-entrypoint-initdb.d/04-create-exporter-user.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
CREATE USER IF NOT EXISTS 'exporter'@'localhost' IDENTIFIED BY '${MYSQL_ROOT_PASSWORD}' WITH MAX_USER_CONNECTIONS 3;
GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'exporter'@'localhost';
CREATE USER IF NOT EXISTS 'exporter'@'127.0.0.1' IDENTIFIED BY '${MYSQL_ROOT_PASSWORD}' WITH MAX_USER_CONNECTIONS 3;
GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'exporter'@'127.0.0.1';

0 comments on commit 6f29b30

Please sign in to comment.