PHP - MySQL access denied error - Works in other programs

前端 未结 3 1017
一向
一向 2021-01-25 17:46
Access denied for user \'root \'@\'localhost\' (using password: YES)

Yes, this error is all too common, and I have spent much time researching it. How

3条回答
  •  清酒与你
    2021-01-25 18:09

    Something is wrong with your credentials.

    Verify the:

    • Username
    • Password
    • Host

    Also, please stop using mysql_* functions as they are now deprecated. Use MySQLi or PDO instead.

提交回复
热议问题