MySQL

Connection

mysql -h <host> -u <user> -p<pass>

Query

show databases;
show tables;
use tables;
select * from users;

Readfile

SELECT LOAD_FILE('/var/lib/mysql-files/pentest.txt');

Last updated