Setting up connection to the database in Joomla

Database connection settings can be modified in the configuration.php file in the root directory of the website by changing the following lines:

public $host = 'localhost'; // Host name

public $user = 'username'; // MySQL username

public $password = 'database_password'; // Database password

public $db = 'database_name''; // Database name