
Find out the name of the WordPress database
Today I had to restore a clients WordPress database as it was corrupted.
The issue I had is that the client’s website is on a shared hosting platform with a few other client websites so I was unsure which database was the correct one so I needed to find out the name of the WordPress database.
How to find the name of the WordPress database
To do this you can easily find this out by opening your WordPress wp-config.php file.
You can access it through the File Manager in your hosting, go into the main WordPress folder and then open the wp-config.php file.
Once in look for the following lines:
- define(‘DB_NAME’, ‘Database Name‘);
The entry for Database Name is what you need to find out the name of the the WordPress database.
More info about WordPress databases can be found here