To connect to a mysql database via a SSH session: (where Username is the database username and dbid is the database id):
%mysql -A -uUsername -pPassword DatabaseID
To connect to a mysql database via a SSH session: (where Username is the database username and dbid is the database id):
%mysql -A -uUsername -pPassword DatabaseID