Map Joomla to an Old Data Base – Step by Step Easy Guide
What to do when you have the old data base but have lost the Joomla folder in the htdocs? How to map Joomla to an old data base? This post will cover all the steps to easily map Joomla to an old data base.
Use the following code to map Joomla to a n old data base:
public $dbtype = ‘mysqli’;
public $user = ‘**dbusername**’; // this will be database user name of old db
public $password = ‘mypassword’; // your password to access old datbase
public $db = ‘jml17’; // change it to old db
public $dbprefix = ‘j17_’; // change it to your old db prefix.
This change in code in the configuration.php file will connect the site with the newly created data base.