Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES)

前端 未结 21 2145
春和景丽
春和景丽 2020-11-22 06:31

Warning: mysqli_connect(): (HY000/1045): Access denied for user \'username\'@\'localhost\' (using password: YES) in C:\\Users\\xampp\\htdocs\\PHP_Login_Script

相关标签:
21条回答
  • 2020-11-22 07:32

    Do you have two connections at the same time? If so, close every time you don't need it.

    0 讨论(0)
  • 2020-11-22 07:37

    In my case the problem was:

    define ('DB_PASSWORD', "MyPassw0rd!'");
    

    (the odd single ' before the double ")

    0 讨论(0)
  • 2020-11-22 07:37

    Not that anyone would ever have CAPS on when entering a password...but it can give this error.

    0 讨论(0)
提交回复
热议问题