How to retrieve the database settings of an existing Joomla website

PDF Print E-mail
Share
Sunday, 28 February 2010 20:21

In case you’ve lost the db settings of your Joomla website you can easily retrieve them from the Joomla configuration file. Here is how to do it.

Edit the file ‘configuration.php’ in any text editor. This file is located right in the root of the website and it describes the general configuration of the website. This is a php file which declares one class: class JConfig. Locate the following values inside:

var $dbtype = 'mysql';
var $host = 'localhost';
var $user = 'your database username';
var $password = 'your database password';
var $db = 'database name';
var $dbprefix = 'jos_'; // This is the default database table prefix. Change this to whatever you intend entering into the MySQL


If you wish to change any of these values you can do it directly from here. Good luck!



 

Comments  

 
0 # 2011-08-22 05:37
From painful experience I think the one thing that should be told to all Joomla website administrators is to open configuration.php copy or print the configuration file, then close the file, and if they have to save it, make sure it saves as a php file.
Reply | Reply with quote | Quote
 

Add comment


Security code
Refresh