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

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

    My.ini from the file #password and #bind-address="127.0.0.1" are commented change the password to root and uncomment bind-address="127.0.0.1" and from the file cds.php change the

    mysql_connect("localhost", "root", ""); to
    mysql_connect("localhost", "root", "root");
    

    Stop the Mysql services and try login again it got logged in.

提交回复
热议问题