php - Error when trying to connect to database -


Then I'm trying to connect to the database and I get this error

Warning: Mysqli_connect (): (HY000 / 1045): Access denied for user's root '@ localhost' (using password: yes) line 2 in /usr/local/zend/share/userServer/register.php On

line 2 $ conn = mysqli_connect ("localhost", "root", "xxxx", "db");

Definitely where to go from here .... Besides my credentials are 100% correct

You are trying to add a database with mysql user root @ localhost, check that the user exists or not your database:

  mysql Choose from user * where user = 'root' and host = 'localhost';   

The user will have the same row if the root @ localhost exists.

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -