select user()
: SQL DB Username
select version()
: View Version
select database()
: View DB name
select load_file()
: Load a file on the Server
-- View all DBs
SELECT schema_name
FROM information_schema.schemata;
-- View tables in DB
SELECT table_name
FROM information_schema.tables
WHERE table_schema="<db-name>";
---View columns in Table
SELECT column_name
FROM information_schema.columns
WHERE table_name="<tab-name>";