mysql said: Cannot connect: invalid settings. xampp

前端 未结 19 1321
闹比i
闹比i 2020-12-01 00:11

I changed the root password to test and now I cannot login in phpMyAdmin page in XAMPP. I looked for help here and here which basically says changed config.inc.php

19条回答
  •  一生所求
    2020-12-01 00:23

    The above code fixed problem for most of the ppl but I still could not login. Finally I found this (line#9 in the above code needs to be changed)

    $cfg['Servers'][$i]['AllowNoPassword'] = true;   <--- change this
    $cfg['Servers'][$i]['AllowNoPassword'] = false;  <--- to this fixed the problem.
    

    Note: there are other areas in localhost where you have to change the password manually. For example in "CD Collection" example. The password is hard coded there rather than picking it up from config.inc.php.

提交回复
热议问题