mysql -u <user> -h <target> -p
mysql --user=<user> --password=<password> --host=<target>
mysql --user=<user> --password=<password> --host=127.0.0.1 --port=<port>
mysql --user=<user> --password=<password> --host=<target> -e "<query>"
# Versión
select version();
# Usuarios
select user();
# Bases de datos
show databases;
# Tablas
use <database>;
show tables;
describe <table>;
SELECT user, host, authentication_string FROM mysql.user;
SELECT concat_ws(':', user, authentication_string) FROM mysql.user;