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

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

相关推荐
ClouGence2 小时前
CloudCanal + Paimon + SelectDB 从 0 到 1 构建实时湖仓
数据库
Java水解4 小时前
Mysql查看执行计划、explain关键字详解(超详细)
后端·mysql
知其然亦知其所以然7 小时前
MySQL 社招必考题:如何优化查询过程中的数据访问?
后端·mysql·面试
DemonAvenger9 小时前
NoSQL与MySQL混合架构设计:从入门到实战的最佳实践
数据库·mysql·性能优化
程序新视界9 小时前
如何在MySQL中创建聚集索引?
mysql
AAA修煤气灶刘哥20 小时前
后端人速藏!数据库PD建模避坑指南
数据库·后端·mysql
程序新视界21 小时前
学习MySQL绕不开的两个基础概念:聚集索引与非聚集索引
mysql
RestCloud1 天前
跨境数据传输:ETL如何处理时区与日期格式差异
mysql·api
RestCloud1 天前
揭秘 CDC 技术:让数据库同步快人一步
数据库·api
得物技术1 天前
MySQL单表为何别超2000万行?揭秘B+树与16KB页的生死博弈|得物技术
数据库·后端·mysql