mysql said: Cannot connect: invalid settings. xampp

前端 未结 19 1141
闹比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.

    0 讨论(0)
  • 2020-12-01 00:24

    all you have to do is stopping

    mysqld.exe

    from the task manager and restart the server (Xammp)

    0 讨论(0)
  • 2020-12-01 00:24

    it may be another mysqld instance running and stoped it with:

    sudo service mysql stop

    Worked for me.

    0 讨论(0)
  • 2020-12-01 00:24

    If you are facing this issue after changing password in phpmyadmin, paste the old password (passwd before change) in xampp\phpMyAdmin\config.inc.php :

    $cfg['Servers'][$i]['password'] = '**old password here**';
    

    Hope, it would work :)

    0 讨论(0)
  • 2020-12-01 00:25

    Best Way is reinstall if you have xampp/wamp/mamp or in linux uninstall and reinstall phpmyadmin by using apt-get

    0 讨论(0)
  • 2020-12-01 00:25

    I also had that problem and i did what hairul said:

    1. Go to localhost/security/
    2. Click the orange link localhost/security/xamppsecurity.php
    3. Change the password for superuser: 'root'"

    then i restarted mysql on the xampp control panel and didn t work.

    It only worked when i restarted my computer!!!!

    0 讨论(0)
提交回复
热议问题