Sheldon Livingston
asked on
Cannot log into website using MySQL and PHP
All of a sudden my websites don't work. When trying to log in I get the following error:
Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'USERNAME'@'localhost' (using password: YES) in /home8/mysite/public_html/ domain/ver ify.php on line 18
Unable to connect to database [Access denied for user 'USERNAME'@'localhost' (using password: YES)]
Bluehost has been no help.
Thoughts
Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'USERNAME'@'localhost' (using password: YES) in /home8/mysite/public_html/
Unable to connect to database [Access denied for user 'USERNAME'@'localhost' (using password: YES)]
Bluehost has been no help.
Thoughts
What's the code in verify.php? Are you sure your credentials are correct?
Check the database is running.
As Ferruccio Accalai asks, check your credentials.
Is this a 'localhost' machine? Because Bluehost do not sound local.
As Ferruccio Accalai asks, check your credentials.
Is this a 'localhost' machine? Because Bluehost do not sound local.
I believe you should have a mysql admin option on your Bluehost control panel (can't remember the name of it at present).
See if you can log onto the database using the credentials in there - if not, ask Bluehost to confirm the correct details for the database.
if you can access it directly via mysql check the details between that and your coding in verify.php.
See if you can log onto the database using the credentials in there - if not, ask Bluehost to confirm the correct details for the database.
if you can access it directly via mysql check the details between that and your coding in verify.php.
@All of a sudden my websites don't work. When trying to log in I get the following error
Just in addition.
All of a sudden, so it was working before. Have you changed any code due to MySql version's upgrade? Are you using scripts coded for working with the last php and mysql versions but maybe BlueHost still works with older versions?
Just in addition.
All of a sudden, so it was working before. Have you changed any code due to MySql version's upgrade? Are you using scripts coded for working with the last php and mysql versions but maybe BlueHost still works with older versions?
ASKER
The 3 websites all were working fine yesterday morning and yesterday night are failing.
No code has been changed... it fact I haven't worked on these sites in quite some time.
I have not changed credentials but suspect that something has.
I can get into the databases via phpMyAdmin.
No code has been changed... it fact I haven't worked on these sites in quite some time.
I have not changed credentials but suspect that something has.
I can get into the databases via phpMyAdmin.
SO you have to look into the code. Maybe there's no connection to the server or the most bad thing could be any hacking action
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Solved myself