How to Find the Database Name Your App Uses
When troubleshooting, you often need to know which database your site uses. The answer is in the application's config file.
Step-by-step
- Open Files → File Manager and go to your site's folder (usually public_html).
- Open the config file for your app — WordPress: wp-config.php; many PHP apps: config.php or a settings file.
- Find the database settings. In WordPress look for DB_NAME, DB_USER, DB_HOST and DB_PASSWORD.
- Note the values. DB_NAME and DB_USER include your account prefix; DB_HOST should be localhost on EconomicalHost.
- Cross-check in cPanel — Databases → MySQL Databases lists the real database and user names so you can confirm a match.
- Use these values when importing, exporting or fixing connection errors.
💡 Good to know
- Never share or expose the config file publicly — it contains the database password.
- A mismatch between the config and the real database name is the top cause of connection errors.
- Back up the config before editing it.