my sql command line loin code example
Example 1: mysql connect command
mysql --host=localhost --user=myname --password mydb
mysql -h localhost -u myname -p mydb
Example 2: mysql cli connect with password
mysql --user=root --password=mypass
mysql --host=localhost --user=myname --password mydb
mysql -h localhost -u myname -p mydb
mysql --user=root --password=mypass