Use the following outline to connect and begin querying the MySQL server from SSH. Remember that you cannot connect to your databases remotely due to security concerns, you can only connect from localhost .
1. Connect To The MySQL Server
servername:/> mysql -u USERNAME -p
Enter Password: PASSWORD
2. Connect To The Database
mysql> use DATABASENAME;
3. Receiving Help
mysql> help
- 1 Users Found This Useful