1

I just installed the newest version of XAMPP in order to move to the newest version of PHP, 7.something, but when I navigate to http://localhost/dashboard/ and try to enter phpMyAdmin, I get the following error:

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

What can I do about it so that I can access phpMyAdmin?

Yavor
  • 129
  • 1
  • 14
  • Did you installed in a new direction? – Farshid Mar 19 '16 at 16:12
  • I'm not sure what you mean. – Yavor Mar 19 '16 at 16:13
  • Did you installed New Xampp in new Path? – Farshid Mar 19 '16 at 16:14
  • 2
    Try this solution: http://stackoverflow.com/questions/1276538/phpmyadmin-cant-connect-invalid-setings-ever-since-i-added-a-root-passwor – leonida Mar 19 '16 at 16:14
  • No, farshid. I installed it in the same path but backed up the original installation before that. Then I moved the htdocs and the data folder back to the new installation and everything works fine, except that I get this error and cannot access phpMyAdmin. – Yavor Mar 19 '16 at 16:18
  • Thank you, leonida. This solved my problem. I had to enter password in: $cfg['Servers'][$i]['password'] = ''; – Yavor Mar 19 '16 at 16:27

1 Answers1

0

file: config.inc.php

$cfg['Servers'][$i]['password'] = 'mypassword';
Yavor
  • 129
  • 1
  • 14