Press enter to see results or esc to cancel.


Connect to remote MySql database using Command Prompt

In this video I have shown how to create an online free MySQL database for testing.

How to create remote MySQL database. How to connect to remote MySQL database.

As per in this example. We can connect to MySQL with the below command line argument.
Open CMD and First navigate to location where you have installed MySQL in your PC.

C:\cd MySQL installed path\MySQL -u{mysql username>} -p{mysql password} -h {hostname} -P{portnumber}

eg.

C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin>mysql -u qatarindia123 -pqatarindia123 -h db4free.net -P3307 jinujawad

Now it would have connected. If there is any error. Please let me know in comments.