Skip to content

Commit

Permalink
mysql: user munin for unix_socket auth plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Black committed Mar 31, 2015
1 parent 2d0d9f7 commit e2452e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/node.d/mysql_
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Non-default example:
env.mysqlpassword ryuWyawEv
env.cachenamespace munin_mysql_alt
[mysql10_*]
user munin
env.mysqluser munin
env.mysqlconnection DBI:mysql:information_schema;mysql_read_default_file=/etc/munin/.my-10.cnf
env.cachenamespace munin_mysql_10
Expand All @@ -67,10 +68,12 @@ Creating a munin user:
CREATE USER 'munin'@'localhost' IDENTIFIED BY 'ryuWyawEv';
or with a unix_socket plugin (INSTALL PLUGIN unix_socket SONAME 'auth_socket')
or with a unix_socket plugin (INSTALL PLUGIN unix_socket SONAME 'auth_socket')
CREATE USER 'munin'@'localhost' IDENTIFIED WITH unix_socket;
Note: requires 'user munin' in the configuration.
The minimum required priviledges of the munin database user is:
GRANT PROCESS, REPLICATION CLIENT ON *.* TO 'munin'@'localhost';
Expand Down

0 comments on commit e2452e5

Please sign in to comment.