mysql> create user 'monitor_user'@'127.0.0.1'; mysql> grant PROCESS, REPLICATION CLIENT on *.* to 'monitor_user'@'127.0.0.1'; mysql> flush privileges; $ /usr/local/bin/mackerel-plugin-mysql -username=monitor_user -tempfile /tmp/mackerel-plugin-mysql-localhost-3306 mysql.innodb_lock_structures.innodb_lock_structs 0 1434080228 mysql.innodb_adaptive_hash_index.hash_index_cells_total 34679 1434080228