input password mysql cli code example
Example 1: mysql cli connect with password
mysql --user=root --password=mypass
Example 2: login to database mysql terminal
use DBNAME;
Example 3: login to database mysql terminal
show databases;
mysql --user=root --password=mypass
use DBNAME;
show databases;