MySQLΒΆ

BasicsΒΆ

mysql -h SRV -D DBNAME -u USR -e 'select * from TABLE;' --password=PASS

SQLMAPΒΆ

sqlmap -d mysql://USR:PASS@SRV:3306/DBNAME -D DBNAME -T TABLE --dump --flush-session --batch

OTHERΒΆ

# Read file (cat for correct render)
mysql -h SRV -D DBNAME -u USR -e 'select load_file("/etc/passwd")' --password=PASS | echo -e "$(cat)"