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

前端 未结 15 2124
北海茫月
北海茫月 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

    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.

提交回复
热议问题