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

前端 未结 21 2650
春和景丽
春和景丽 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:31

    you defIne as DB_USER but use as DB_USERNAME. Also php says username@localhost cant access. Not root@localhost.

    Change your define or connect paramater.

提交回复
热议问题