I want to be able to programmatically query the Amazon MySQL instance from my local server.
I have been able to setup MySQL workbench to use the ec2 server to create an ssh connection and then to connect to the MySQL server, so I can query the database through the workbench query window. But haven't been able to find a way to do the same using the command line tools?