#MySQL监控用户
shell# su mysql
shell# mysql -uroot -p'123456'
mysql> GRANT USAGE,SELECT,PROCESS,REPLICATION CLIENT,REPLICATION SLAVE ON *.* TO 'zabbixMySQL'@'localhost' IDENTIFIED BY 'zabbixMySQL';
mysql> flush privileges;
mysql> select user,host from mysql.user;
#删除用户
drop user 'zabbixMySQL'@'localhost';
本文摘自 :https://blog.51cto.com/u