mysql等保数据库命令

mysql数据库命令

默认安装位置:C:\Program Files\MySQL\MySQL Server 8.0\bin

select version() from dual;

desc mysql.user; 查看表中有哪些列

1、SELECT user, host, authentication_string, account_locked ,password_lifetime FROM mysql.user; 查询用户表

4、show variables like '%validate%'; 用户口令复杂度

show variables like '%password%'; 用户口令复杂度

5、show variables like '%timeout%'; 一个连接空闲超过多少秒就断开。

6、show variables like '%connection_control%'; 登录失败处理

show plugins;

7、show variables like '%ssl%' ;是否激活ssl

show global variables like "require_secure_transport";

8、show grants for 'root'@'localhost'; 查看root 分配的权限。

10、show variables like '%log_bin%' ; 查看输出的日志内容

show variables like '%log_output%'; 以什么形式存储日志。

show variables like '%general_log%' ;

show variables like '%logs_days%';

11、ll日志文件 / 右键-属性-安全

询问备份情况,查看数据库中的数据是否采取加密和完整性校验,询问加密方式

相关推荐
好奇的菜鸟2 小时前
如何在IntelliJ IDEA中设置数据库连接全局共享
java·数据库·intellij-idea
tan180°2 小时前
MySQL表的操作(3)
linux·数据库·c++·vscode·后端·mysql
满昕欢喜2 小时前
SQL Server从入门到项目实践(超值版)读书笔记 20
数据库·sql·sqlserver
DuelCode3 小时前
Windows VMWare Centos Docker部署Springboot 应用实现文件上传返回文件http链接
java·spring boot·mysql·nginx·docker·centos·mybatis
幽络源小助理3 小时前
SpringBoot基于Mysql的商业辅助决策系统设计与实现
java·vue.js·spring boot·后端·mysql·spring
Hello.Reader3 小时前
Redis 延迟排查与优化全攻略
数据库·redis·缓存
简佐义的博客4 小时前
破解非模式物种GO/KEGG注释难题
开发语言·数据库·后端·oracle·golang
爬山算法4 小时前
MySQL(116)如何监控负载均衡状态?
数据库·mysql·负载均衡
老纪的技术唠嗑局7 小时前
OceanBase PoC 经验总结(二)—— AP 业务
数据库
阿里云大数据AI技术7 小时前
OpenSearch 视频 RAG 实践
数据库·人工智能·llm