Question: How do I connect to mysql database server from command line such as PuTTY and ssh?
Answer: The syntax to connect to mysql from command line is as below:
mysql -uUSERNAME -hHOST -pPASSWORD
Replace USERNAME, HOST and PASSWORD with your actual username, host (database server) and password.
good link to know about mysql
its help me to connect external mysql server from local server
How do I start Putty using these switches?