mysql connect cli command code example
Example 1: mysql remote connection command line
mysql --host=localhost --user=myname --password mydb
Example 2: how to connect mysql local server
\connect root@localhost:3306
mysql --host=localhost --user=myname --password mydb
\connect root@localhost:3306