Mysql 内置的系统数据库INFORMATION-SCHEMA , 其结构如MSSQL 中的master 数据库, 其中记录了MySQL中所有存在数据库名、数据库表、表字段,
其中, 关键的三个表为:
select schema_name from information_schema.schemata; #查数据库名
select table_name from information_schema.tables where table_schema = ‘dvwa‘; #查表名
select column_name from information_schema.columns where table_name =‘users‘ and table_schema=‘dvwa‘; #查字段名
select user,password from dvwa.users;
https://www.sohu.com/a/331058431_609556
原文:https://www.cnblogs.com/52kj/p/12408863.html