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日志文件 / 右键-属性-安全

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

相关推荐
2501_945423543 分钟前
使用PyTorch构建你的第一个神经网络
jvm·数据库·python
樹JUMP28 分钟前
Python虚拟环境(venv)完全指南:隔离项目依赖
jvm·数据库·python
用什么都重名31 分钟前
Redis 入门与实践:从基础到 Stream 消息队列
数据库·redis·缓存
Mistra丶35 分钟前
记一次 JVM+Postgresql的 “死锁” 问题排查
jvm·数据库·postgresql·死锁
一然明月36 分钟前
Qt QML 锚定(Anchors)全解析
java·数据库·qt
分享牛1 小时前
Operaton入门到精通23-Operaton 2.0 原生支持 JUnit 6 核心指南
数据库·junit
编码忘我1 小时前
mysq系列之事务
数据库
知识分享小能手1 小时前
Redis入门学习教程,从入门到精通,Redis进阶编程知识点详解(5)
数据库·redis·学习
MekoLi291 小时前
MongoDB 新手完全指南:从入门到精通的实战手册
数据库·后端
cyforkk1 小时前
Spring AOP 进阶:揭秘 @annotation 参数绑定的底层逻辑
java·数据库·spring