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.
How to Map Joomla to an Old Data Base
- Install fresh copy of Joomla
- Rename data base to a different name in PHPmyAdmin
- Change backup to currently used name
- Clear cache and check for other caching issues
- Edit configuration.php file
Code to 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.