How to fix an error of PhpMyAdmin access denied in xamp mySql.

Error resolving of PhpMyAdmin access denied.

For most first time install, accessing http://localhost/PhpMyAdmin will directly take us to the PhpMyAdmin web interface without asking for password or anything because by default there is no password set. But when you install it second time you can face an error like this while accessing PhpMyAdmin.Due to that previous default loaclhost port number is not valid now.

What should be done! Let’s see in below with some easy steps.

1. So , you have to open XAMPP Control Panel ->Click MySql Config->Click my.ini

XAMPP control panal fig. 1

It will open in notepad as shown in figure.

my.ini fig.2

2. You have to write this line skip-grant-tables after [mysqld].

3.Open xamp folder ->PhpMyAdmin .You will see file in phpMyAdmin folder, just open it with notepad++

MyPhpAdmin folder fig.3

$cfg[‘Servers’][$i][‘host’] = ‘’; This is default port number. fig.4

4. Resolve this issue by manually editing in the file “” located at “C:\xampp\phpMyAdmin”. Write “localhost:3307” within $cfg[‘Servers’][$i][‘host’] = ‘localhost:3307′; as shown given picture. fig.5

5. Save this changes. You can find port number as follows: Open XAMP->config->service port setting->mySql.

ServerSettings fig.6

Now , you can access MyPhpAdmin.


Total Page Visits: 260 - Today Page Visits: 3