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

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

    Use this

    After setup this you will not receive this issue again

    SET PASSWORD FOR root@localhost = PASSWORD('your_root_password');
    

    I was stuck up in this issue after used this query everything was solved

提交回复
热议问题