connect to mysql cmd code example
Example 1: login to database mysql terminal
mysql -u USERNAME -p
Example 2: connect mysql command line
mysql --host=localhost --port=myport --user=myname --password
mysql -h localhost -u myname -p --port=myport
Example 3: login to database mysql terminal
show databases;