MySQL

Connect MySQL from the shell

Connect to a database by a shell command

Shell

mysql -u username -p -h mysql.mydomain.com databasename