XAMPP MYSQL DATABASE ACCESS
When installing Xampp on my windows computer, I kept the root password empty. That is what was suggested. But it is unsecure to keep it like that Anyone will have access to Xamp and MySQL database. I decided then to secure my my Xamp and MySQL database by creating a password for root access. Here is a way I did it.
1- Start xampp server
2- Open your browser
3- Type the folowing url: http://localhost/security/xamppsecurity.php
The security page will be diaplayed and you’ll be able to type and retype your password.
4- Click on “Password changing”
That is! root access has now a password.
This will update the phpMyAdmin config also.
This password will be needed anytime to want to access to mysql, so write it down in your wallet.
You will be able to change the root password again later, but you’ll need to enter your current password.
Source : http://veerasundar.com/blog/2009/01/how-to-change-the-root-password-for-mysql-in-xampp/