安全加固的前提是保障业务稳定运行,而不是为了安全加固而加固!
1. 新增审计账号并赋予相关权限
进入数据库操作后台:
mysql -h 192.168.101.17-u root -p查看数据库用户和口令信息:
select host,user,plugin,authentication_string from mysql.user;查看用户权限:
show grants for audit@localhost;创建新用户:
create user 'manager'@'localhost' identified by 'abc@123';给用户授权:
grant privileges ON databaseName.tableName TO 'manager'@'loc