connect to mysql cli code example
Example 1: mysql cli connect with password
mysql --user=root --password=mypass
Example 2: connect mysql command line
mysql --host=localhost --port=myport --user=myname --password
mysql -h localhost -u myname -p --port=myport