Checking CMS database

The following information will help you to locate what MySQL database your CMS or E-commerce website uses.

To locate the database name open the suggested files with your HTML/PHP editor and using the search tool (CTRL+F) search for the suggested variable. The variable value would be the database name

WordPress

Open wp-config.php file, search for the variable: ‘DB_NAME‘;

Oscommerce

File: /includes/configure.php or /admin/includes/configure.php

Variable: ‘DB_DATABASE‘;

Zen-cart:

File: /includes/configure.php or /admin/includes/configure.php

Variable: ‘DB_DATABASE‘;

VirtueMart| Joomla

File: configuration.php

Variable: $db;

Prestashop

File: /config/settings.inc.php

Variable: ‘_DB_NAME_‘;

Magento

File: /app/etc/config.xml or /app/etc/local.xml files

Variable: dbname;

Drupal 6

File: /sites/default/settings.php

Variable: $db_url, check the last value after the “/” symbol. For example:
mysql://root@localhost/drupalM

Drupal 7

File: /sites/default/settings.php

Array: $databases – variable ‘database