mysql said: Cannot connect: invalid settings. xampp

前端 未结 19 1143
闹比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:40

    if you are using google chrome you can fix the problem via , trying any one of the steps mentioned on this page but you need to clear your whole browsing history .... clear all the data that chrome saved onto your computer by pressing ctrl+h and the clearing all the browsing data select all the fields now restart php my admin and all will work

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

    I also have the problem but now solved

    $cfg['Servers'][$i]['user'] = 'admin'; - I change the user name from 'root' to 'admin'

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

    In xampp\phpMyAdmin\config.inc.php : changing:

    'config';$cfg['Servers'][$i]['user'] = 'root'
    

    to

    'config';$cfg['Servers'][$i]['user'] = 'user'
    

    and

    $cfg['Servers'][$i]['controluser'] = 'root'
    

    to

    $cfg['Servers'][$i]['controluser'] = 'user'
    

    Solved my Problem.

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

    I faced this problem as well but i could fix it by going to the folder /xampp/phpmyadmin/config.inc.php

    Open config.inc.php, u will find (if no password) ['password']= '' or (if old password) ['password']= '123'

    Change the password $cfg['Servers'][$i]['password'] = 'test' and u will be able to access phpmyadmin again :)

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

    I also had the same problem and it tooks me several hours to figured out.

    I just changed 'config' to 'cookie'

    $cfg['Servers'][$i]['auth_type'] = 'config';
    
    0 讨论(0)
  • 2020-12-01 00:47
    **Step1**: Go to xampp/phpMyAdmin/config.inc.php
    **Step2**: Search this: $cfg['Servers'][$i]['host'] = '127.0.0.1';
    **Step3**: Replace with $cfg['Servers'][$i]['host'] = '127.0.0.1:3307';
    
    Here 3307 will be change  with your mysql port number, in my case it is 3307. Most of the times it will be 3306.
    
    You can check your mysql port number from here : xampp/mysql/bin/my.ini
    
    0 讨论(0)
提交回复
热议问题