Reputation: 23
I have created a form and it is suppose to pass three variables onto my database. I not able to submit my variables to the database, it gives me this error:
"Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'username'@'xx.xx.xx.xx' (using password: YES) in /home/simples2/public_html/insert.php on line 2
Failed to connect to MySQL: Access denied for user 'username'@'xx.xx.xx.xx' (using password: YES)
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in /home/simples2/public_html/insert.php on line 13
Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /home/simples2/public_html/insert.php on line 15
Error:"
I am not sure what needs to be done here. I have checked for spellings, passwords and syntax to my best of abilities which is quite less but I am not able to do.
Upvotes: 1
Views: 1233
Reputation: 368
For this, I would verify that the MYSQL database user allows that username allows connections from that ip address. It seems that the user account was setup for 'username'@localhost or the password is incorrect
Upvotes: 1