php - Warning: mysqli_connect(): (HY000/1045): Access denied for user -
this question has answer here:
- php mysql (1045) access denied user 4 answers
i'm new php. trying connect mysql php. error: warning: mysqli_connect(): (hy000/1045): access denied user 'mike'@'localhost' (using password: yes) in c:\abyss web server\connect_db.php on line 5 access denied user 'mike'@'localhost' (using password: yes)
what's wrong connection script?
#set encoding match php script encoding mysqli_set_charset($dbc,'utf8'); ?>
try this:
<?php $con = mysqli_connect("localhost","my_user","my_password","my_db"); // check connection if (mysqli_connect_errno()) { echo "failed connect mysql: " . mysqli_connect_error(); } ?>
Comments
Post a Comment