I have a server with Rackspace. I want to access the database from my local machine command line.
I tried like:
mysql -u username -h my.application.com
Try this command mysql -uuser -hhostname -PPORT -ppassword.
mysql -uuser -hhostname -PPORT -ppassword
I faced a similar situation and later when mysql port for host was entered with the command, it was solved.