Tutorials

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.

Are you a developer? Want to get a promotion, work on interesting projects, land a high paying job at a tech company or stand out from the crowd?

Then this ebook is for you!

Career Guide for Software Developers

Career Guide for Software Developers

3 thoughts on “Connecting to mysql from command line (eg: PuTTY, ssh)

  1. good link to know about mysql

  2. its help me to connect external mysql server from local server

  3. How do I start Putty using these switches?

Comments are closed.

Twitter
LinkedIn
YouTube
Instagram