How to Connect to a remote MySQL Database



The -h option allows you to connect to a remote host.
-h, –host=name Connect to host.

mysql -u root -p -h hostname 

Leave a Reply