Connecting MySQL from command line
Note
Open the command prompt and type the below to connect the MySQL:
mysql -u username -pAfter the above command the command line will prompt you to enter the password and after entering the password you can query the database.