First, you have to install xampp in your operation system. if you are using windows you need need to go to this location and open the command window.


Login to MySQL

Use the following command to log in to your MySQL database.

C:\xampp\mysql\bin>mysql -u root -p

It will ask for a password, once you enter your password you can log in to your MySQL database.

Enter password: ---------your password---------

Thanks, it will help you ......