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 -ppassword
But it gives an error:
ERROR 2003 (HY000):
Can't connect to MySQL server on 'my.application.com' (10061)
What causes this error and how can I connect to the remote database?
Best Answer
To directly login to a remote mysql console, use the below command:
For example
no space after -p as specified in the documentation
It will take you to the mysql console directly by switching to the mentioned database.