More than 800+ satisfied clients and counting, since 2010

Blog

Map Joomla to an Old Data Base – How to Guide

Map Joomla to an Old Data Base – Step by Step Easy Guide

Map Joomla to an Old Data BaseWhat 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.

Written by

The author didnt add any Information to his profile yet