login to mysql server code example
Example 1: login mysql
mysql -u root -p
Example 2: mysql cmd command to run
mysql.exe –uroot –p
Example 3: login to database mysql terminal
mysql -u USERNAME -p
Example 4: mysql cli connect with password
mysql --user=root --password=mypass
Example 5: login to database mysql terminal
use DBNAME;
Example 6: login to database mysql terminal
show databases;