mysql command to connect to database code example
Example 1: mysql remote connection command line
mysql --host=localhost --user=myname --password mydb
Example 2: mysql cmd command to run
mysql.exe –uroot –p
mysql --host=localhost --user=myname --password mydb
mysql.exe –uroot –p