MySQL How-to Connect to Remote Database by Terminal/Command Line

October 7th, 2011 by Regaz
The Tip Simply Shows How-to Connect to a Remote MySQL Database by Terminal Command

With IP Address:

mysql -h xxx.xxx.xxx.xxx -u yourMySQLUser -p

With Hostname:

mysql -h yourHostName -u yourMySQLUser -p

Tags: , , , ,