#MySQL監(jiān)控用戶
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