To connect to your database via SSH use the following command:

mysql -h db_host_name -D db_name -u db_username -psomepass

You can find the necessary information inside the Database Manager of your hosting control panel.


Keep reading