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.
C:\xampp\mysql\bin>
Login to MySQL
Use the following command to log in to your MySQL database.
C:\xampp\mysql\bin>mysql -u root -p
![](https://rathorji.in/post-media/24439a5f7257232247573f94ad9d7892/c56720816b0297cb28a035a82612e8fa.png)
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 ......