connect to user mysql code example
Example 1: mysql remote connection command line
mysql --host=localhost --user=myname --password mydb
Example 2: connect to mysql localhost from the mysql shell
\connect root@localhost:3306
mysql --host=localhost --user=myname --password mydb
\connect root@localhost:3306