数据库版本为5.7.X
有什么区别呢?
GRANT USAGE,SELECT,PROCESS,REPLICATION CLIENT,REPLICATION SLAVE ON *.* TO ‘zabbix‘@‘127.0.0.1‘ IDENTIFIED BY ‘xxxxxx‘;
flush privileges;
CREATE USER ‘zabbix‘@‘localhost‘ IDENTIFIED BY ‘XXXXXXXX‘ WITH MAX_USER_CONNECTIONS 3;
GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO ‘zabbix‘@‘localhost‘;
1、这几个权限都是什么意思呢?
2、为什么会出现这两种不同的方法呢?
3、结果是一样的么?
4、哪种写法更安全呢,虽然都能实现监控的要求~~
通常我都是第二种写法哈~~
原文地址:https://blog.51cto.com/roidba/2432129
时间: 2024-10-10 00:12:50