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

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

    I had this same problem after I dropped the special PhpMyAdmin controluser account from MySQL.

    I had to update the config.inc.php file and replace the entries for 'controluser' and controlpass' with 'user' and 'password'.

    So my file ended like this:

    $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password']='123456';

提交回复
热议问题