MySQL

Connect to mysql server using mysql on Linux:

mysql -h <HOST> --user=<USERNAME> --password=<PASSWORD> [DATABASE]

Display current user:

SELECT USER();

Display current database:

SELECT DATABASE();
show databases;
use <DATABASE>;
show tables;