“Connection for controluser as defined in your configuration failed” with phpMyAdmin in XAMPP

前端 未结 12 2241
执念已碎
执念已碎 2020-11-27 09:07

I have just installed XAMPP on my Windows XP machine, and I get an error saying:

Connection for controluser as defined in your configuration failed.

12条回答
  •  青春惊慌失措
    2020-11-27 10:10

    The problem is that PhpMyAdmin control user (usually: pma) password does not match the mysql user: pma (same user) password.

    To fix it, 1. Set the password you want for user pma here:

    "C:\xampp\phpMyAdmin\config.inc.php"

    $cfg['Servers'][$i]['controlpass'] = 'your_new_phpmyadmin_pass';

    (should be like on line 32)

    Then go to mysql, login as root, go to: (I used phpmyadmin to go here)

    Database: mysql »Table: user

    Edit the user: pma

    Select "Password" from the function list (left column) and set "your_new_phpmyadmin_pass" on the right column and hit go.

    Restart mysql server.

    Now the message should disappear.

提交回复
热议问题