schema mysql terminal connection code example
Example 1: mysql remote connection command line
mysql --host=localhost --user=myname --password mydb
Example 2: login to database mysql terminal
mysql -u USERNAME -p
Example 3: mysql cli connect with password
mysql --user=root --password=mypass