Home > Featured > Syntax for connecting to MySQL via the command line
Bookmark and Share

Syntax for connecting to MySQL via the command line

Posted on May 12, 2012 | Filed in Featured, MySQL

Once you make the connection specified below, you can then issue whatever MySQL command you like.

Syntax:
mysql -u YOUR-USER-NAME -h YOUR-SERVER-NAME -p DATABASE-NAME

Example:
mysql -u yourname -h mydatabase.com -p abcd

 

Leave a Reply