1.数据库赋权

进入mysql数据库:
mysql> use mysql;

给root用户设置新密码:
mysql> update user set password=password("新密码") where user="root";

刷新数据库
mysql> flush privileges;

nagios监控
mysql> GRANT PROCESS, REPLICATION CLIENT ON *.* TO 'nagiosshow'@'10.172.172.12' IDENTIFIED BY PASSWORD '*79B36E3D5F430AF5B15934D61D71C031B6502834';

查看用户信息
use mysql;
select User,Host,Password from user;

查看用户权限
show grants for root@'localhost';

删除用户
delete user form user where Host='xxxx' and User='xxxx';
查看用户与权限

相关文章:

  • 2021-10-29
  • 2021-12-15
  • 2021-08-16
  • 2021-12-03
  • 2021-08-16
猜你喜欢
  • 2021-06-17
  • 2021-08-16
  • 2021-08-13
  • 2021-11-30
相关资源
相似解决方案