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