With the WordPress malware problem found, the next step was to restore communication with the database so WordPress could connect to it and pull in all the required data. This meant replacing the empty wp-config.php file with a valid one. Should you need to perform this operation yourself, we've included the steps we followed below.
Before you can do anything, you need certain information about the MySQL database. If you have control over the database yourself, you already have this data. If not, contact your hosting support team and ask them for it. These are the items you'll need:
- WordPress host address
- WordPress database
- WordPress username
- WordPress password
It’s probably a good idea to ask the support team to reset the password and send you that instead, just in case the missing wp-config.php file is a result of unauthorized users gaining access to the system.
You’ll need root credentials for the MySQL database to follow this procedure. If you have access to the database, but don’t have root credentials, follow the steps outlined in the
official documentation.