You don’t need SSH access, just use this command:
mysql -h db.server -u user -p dbname
You’ll need mysql installed on your machine to run it. If you’re on a Mac, you can install mysql through homebrew by typing in terminal:
homebrew install mysql
This can be really handy if you don’t have phpMyAdmin access or your Navicat is acting up.