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

前端 未结 20 1711
失恋的感觉
失恋的感觉 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:23

    Try this:

    1. Open config.inc.php file in the phpmyadmin directory
    2. Find line 21: $cfg['Servers'][$i]['password'] = '';
    3. Change it to: $cfg['Servers'][$i]['password'] = 'your_password';
    4. Restart XAMPP

    Reference

提交回复
热议问题