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

前端 未结 15 1863
北海茫月
北海茫月 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 06:58

    In case none of the aforementioned solutions works for you, then simply do the under changes. Change this

    $cfg['Servers'][$i]['host'] = '127.0.0.1';
    

    to

    $cfg['Servers'][$i]['host'] = 'localhost';
    

    and

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

    to

    $cfg['Servers'][$I]['auth_type'] ='cookies';
    

    It works in my situation, possibly works on your situation also.

提交回复
热议问题