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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -