Economicalhost · Knowledge Base
Knowledge Base › Databases › How to Find the Database Name Your App Uses
Databases

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

  1. Open Files → File Manager and go to your site's folder (usually public_html).
  2. Open the config file for your app — WordPress: wp-config.php; many PHP apps: config.php or a settings file.
  3. Find the database settings. In WordPress look for DB_NAME, DB_USER, DB_HOST and DB_PASSWORD.
  4. Note the values. DB_NAME and DB_USER include your account prefix; DB_HOST should be localhost on EconomicalHost.
  5. Cross-check in cPanel — Databases → MySQL Databases lists the real database and user names so you can confirm a match.
  6. 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.