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

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

相关推荐
zuoerjinshu25 分钟前
sql实战解析-sum()over(partition by xx order by xx)
数据库·sql
NocoBase2 小时前
【2.0 教程】第 1 章:认识 NocoBase ,5 分钟跑起来
数据库·人工智能·开源·github·无代码
Hoshino.413 小时前
基于Linux中的数据库操作——下载与安装(1)
linux·运维·数据库
Oueii4 小时前
Django全栈开发入门:构建一个博客系统
jvm·数据库·python
未来龙皇小蓝5 小时前
【MySQL-索引调优】11:Group by相关概念
数据库·mysql·性能优化
2401_831824965 小时前
使用Fabric自动化你的部署流程
jvm·数据库·python
njidf5 小时前
Python日志记录(Logging)最佳实践
jvm·数据库·python
twc8295 小时前
大模型生成 QA Pairs 提升 RAG 应用测试效率的实践
服务器·数据库·人工智能·windows·rag·大模型测试
@我漫长的孤独流浪5 小时前
Python编程核心知识点速览
开发语言·数据库·python
2401_851272995 小时前
实战:用Python分析某电商销售数据
jvm·数据库·python