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)

Comments are closed.

Career Guide for Software Developers