MySQL said: Documentation #1045 - Access denied for user 'root'@'localhost' (using password: NO)

前端 未结 20 1749
失恋的感觉
失恋的感觉 2020-11-29 02:41

I installed xampp,but when I tried to run it I got an error as thus:

Error

MySQL said: Documentation

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

20条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 03:42

    Step one: Go to... C:\xampp\phpMyAdmin

    Step Two: Open the config.inc.php file

    Step Three: Locate the following information and change the password.

    /* Authentication type and info */
    $cfg['Servers'][$i]['auth_type'] = 'config';
    $cfg['Servers'][$i]['user'] = 'ENTER_YOUR_USER_NAME_HERE';
    $cfg['Servers'][$i]['password'] = 'ENTER_YOUR_PASS_HERE';
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    $cfg['Servers'][$i]['AllowNoPassword'] = true;
    $cfg['Lang'] = '';
    

提交回复
热议问题