JoomlaSriLanka | Web Designer in Sri Lanka

Database Error: Unable to connect to the database:Could not connect to database

You should check the configuration.php file of your Joomla application and make sure the following lines are correct:

var $dbtype = 'mysql';
var $host = 'localhost';
var $user = 'user_name';
var $password = 'YourPassword';
var $db = 'database_name';
var $dbprefix = 'jos_';

You should make sure you are using the correct MySQL username and database in your configuration.php file. You can use the MySQL Databases tool in your cPanel in order to check the correct username and database for your Joomla. In addition, make sure that your MySQL username is added to your database. This issue can also be caused by errors within the database itself. In such cases you can try restoring your Joomla database.


0 #1 luigi4235 2015-02-14 16:40

Add comment

Security code


Latest Work UG - New Zealand web design by sri lankan design company for new zealand



Paradise Vacations : Web Design | Joomla





Fly Sri Lanka : Web Design : Joomla