自学内容网 自学内容网

Mysql测评手册纯享版

1.SELECT user, HOST, authentication_string FROM mysql.user;

2、口令复杂度策略是否设置

show variables like 'validate_password%';

3.是否有密码最大使用期限设置,查看default_password_lifetime 参数

show global variables like 'default_password_lifetime';

4.查看各用户最后一次修改密码的时间,这样对照会更准确。

select user,host,password_last_changed from mysql.user;

5.查看MySQL的登录失败处理功能

show variables like 'connection_control%';

6.查看操作超时时间,可直接使用

show global variables like 'interactive_timeout';

show global variables like 'wait_timeout'; 

7.确认数据库帐号有哪些,

SELECT user,host FROM mysql.user;

8.查看4个日志的开启情况

show variables like 'log_bin';

show variables like 'log_error';

show variables like 'general_log';

show variables like 'slow_query_log';

9.查看日志存储位置 :show global variables like '%general_log%';


原文地址:https://blog.csdn.net/qq_43796436/article/details/142882787

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!