how to connect to a mysql database on another machine terminal code example
Example: mysql remote connection command line
mysql --host=localhost --user=myname --password mydb
mysql --host=localhost --user=myname --password mydb