phpMyAdmin access denied for user 'root'@'localhost' (using password: NO)

前端 未结 15 1826
北海茫月
北海茫月 2021-02-01 06:18

I am unable to connect to my MySQL in xampp I have this error:

MySQL said: Documentation

1045 - Access denied for user \'root\'@\'localhost\'

相关标签:
15条回答
  • 2021-02-01 07:19

    found a solution, in my config file I just changed

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

    to

    $cfg['Servers'][$i]['auth_type'] = 'HTTP';
    
    0 讨论(0)
  • 2021-02-01 07:19

    Follow these steps- 1.go to config.inc.php file and find - $cfg['Servers'][$i]['auth_type']

    2.change the value of $cfg['Servers'][$i]['auth_type'] to 'cookie' or 'http'.

    3.find $cfg['Servers'][$i]['AllowNoPassword'] and change it's value to true.

    Now whenever you want to login, enter root as your username,skip the password and go ahead pressing the submit button..

    Note- if you choose authentication type as cookie then whenever you will close the browser and reopen it ,again you have to login.

    0 讨论(0)
  • 2021-02-01 07:22

    You need to modify the config-db.php and set your password to the password you gave to the user root, or else if he has no password leave as this ''.

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