Support Centre

Common Database Configuration File Locations

3*3*3*3*3*

Article

Please note that the information below is provided to assist you with changing the connection strings of the most commonly used database driven web applications and we cannot offer a guide on every possible software solution available.

Wordpress configuration file location : httpdocs/wp-config.php

/** MySQL database password */   
define('DB_PASSWORD', '** new password here **');

Joomla configuration file location : httpdocs/configuaration.php

var $password = '** new password here **';

Drupal configuration file location : httpdocs/sites/default/settings

$databases = array (  
'default' =>   
array (   
'default' => [  
array (   
'database' => 'database-name',   
'username' => 'database-username',  
'password' => '**new password here***',   
'host' => 'localhost',     
'port' => '',   
'driver' => 'mysql',  
'prefix' => '',

OSCommerce 2.2 Configuration file location : httpdocs/includes/configure.php & httpdocs/admin/includes/configure.php

define('DB_SERVER_PASSWORD', '** new password **');

The password needs to be changed in both files.

Moodle 2 configuration file location : httpdocs/config.php

$CFG->dbpass = '** new password here **';

Magento configuration file location : httpdocs/app/etc/local.xml

<password><![CDATA[** new password here ** ]]></password>


Rate This Article

How useful was this article?

Not useful A little useful Useful Very useful Everything I needed