15 May, 2007
Connecting to mysql from command line (eg: PuTTY, ssh)
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.
Love what you've just read? Subscribe to our newsletter to receive tips, resources and special offers related to web development & design.
Other similar posts that you might be interested in:
- Links Love Series 2: MySQL server fine tuning and administrating
- Store login information in cookie using jQuery
- 10 Examples of Basic Input Validation in Javascript
- Fieldset and Legend bug in IE8
- Utf-8 encoding problem with MySQL restore
- Domains hosted on the same server
- 15 tips on optimising MySQL databases and MySQL queries
Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 


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?