查询数据库中所有表名select table_name from information_schema.tables where table_schema='csdb' and table_type='base table';查询指定数据库中指定表的所有字段名column_nameselect co ...
分类:
数据库 时间:
2020-03-27 16:56:41
阅读次数:
72
1.查询数据库 查看有哪些数据库: 1 SHOW DATABASES; information_schema:数据字典 mysql:控制和管理信息 performance_schema:性能字典 sys:系统数据库 查看数据库信息: SHOW CREATE DATABASE 数据库名称; 1 SHO ...
分类:
数据库 时间:
2020-03-25 23:24:19
阅读次数:
87
今天在ctfhub整理了几个sql注入的解题过程,还算是比较详细的。 知识点都是比较常见的:每个题大致涉及的知识点用一张表格解释 !注:下方的 information_schema.xxxxxxxxxxxxxx皆表示 information_schema库下的表 如:schemata、tables等 ...
分类:
数据库 时间:
2020-03-24 01:09:31
阅读次数:
409
use information_schema; -- 查看 各库 占用 大小 select TABLE_SCHEMA, concat(truncate(sum(data_length)/1024/1024,2),' MB') as data_size, concat(truncate(sum(ind ...
分类:
数据库 时间:
2020-03-21 13:04:23
阅读次数:
105
select table_schema, table_name from information_schema.tables where table_name not in (select distinct table_name from information_schema.columns whe ...
分类:
数据库 时间:
2020-03-20 19:58:30
阅读次数:
263
vim /etc/my.cnf +10 i log-bin=mysql-bin binlog-ignore-db=information_schema binlog-ignore-db=mysql binlog-ignore-db=performance_schema server-id= 1 vi ...
分类:
数据库 时间:
2020-03-20 17:16:34
阅读次数:
89
简单翻译MySQL8.0-INFORMATION_SCHEMA增强的文章 ...
分类:
数据库 时间:
2020-03-18 15:35:40
阅读次数:
71
一、介绍 MySQL中有一个默认数据库名为information_schema,在MySQL中我们把 information_schema 看作是一个数据库,确切说是信息数据库。其中保存着关于MySQL服务器所维护的所有其他数据库的信息。如数据库名,数据库的表,表栏的数据类型与访问权 限等。在INF ...
分类:
数据库 时间:
2020-03-14 12:39:53
阅读次数:
73
1.查询某个schema,某张表的创建时间。 SELECT CREATE_TIME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='db_campus(库名)' AND TABLE_NAME='tb_ilovi_device(表名)'; 2. 开 ...
分类:
数据库 时间:
2020-03-13 14:34:27
阅读次数:
68
1.检查是否存在注入 and 1=1 返回正确 and 1=2 返回错误 2.猜出字段数 order by x(数字) 得出字段数 3.然后就是爆数据库名,information_schema三步 ?id=1 and 1=2 union select 1,database() 得到数据库名称sqli ...
分类:
数据库 时间:
2020-03-07 00:06:41
阅读次数:
132