The error message on the WP admin page gives two hints
- Does the user
i8902285_wp1
have permission to use the i8902285_wp1
database?
- On some systems the name of your database is prefixed with your username, so it would be like
username_i8902285_wp1
. Could that be the problem?
You may want to explore along those lines and check with your hosting provider if need be, on what is the expected DB name. Also check the permissions bit.
Hi @georged4239 – You may want to create a separate forum thread with details of your issue. Thanks.
@nagpai I called the hosting provider (godaddy) and they were not at all helpful (only suggesting we purchase additional services to get help!) i can access the database via ftp and the myphadmin and can see the names etc are correct… i am trying to repair the site after a malware attack … and have removed/renamed all the stray files that were added to the site, but still cannot get the db to connect…
Have you tried changing the name of the database in the wp-config.php to the format username_i8902285_wp1
( replace by your actual cpanel username )
I found this guide on GoDaddy too with some specific instructions related to WP sites hosted on them
https://godaddy.com/help/fix-error-establishing-a-database-connection-in-wordpress-26356
There is a mention of finding the DB tables prefix and adding it in the config.
$table_prefix = 'yourtableprefix';