MySQL Utilities MySQL Tutorial

If you have set the privileges to allow remote connections to a database, you can connect from a remote command line client by using the -h flag:

c:\mysql\bin\mysql -u  -p -h 

c:\mysql\bin\mysql -u admin -p -h my.myserver.com