Opencart Error: Could not make a database connection

September 1, 2016 - By 
All ProblemsCategory: QuestionsOpencart Error: Could not make a database connection
Julia asked 2 years ago

Moved my opencart website to other host and getting error database connection

even changed config.php with the new Directory and new data on mysql

And receive the error :

Error: Could not make a database connection using [email protected]

Please help me .. I click on the LINK and doesnt exist !!

1 Answers
Julia answered 2 years ago

Editing Config files properly plays important role in configuring database check your

define(‘DB_DRIVER’, ‘mysql’);
define(‘DB_HOSTNAME’, ‘localhost’);
define(‘DB_USERNAME’, ‘stoychev_test’);
define(‘DB_PASSWORD’, ‘123456789);
define(‘DB_DATABASE’, ‘stoychev_oc1551’);
define(‘DB_PREFIX’, ‘oc_’);

Please fill in your USERNAME, PASSWORD and DATABASE under the ‘DB_USERNAME’, ‘DB_PASSWORD’ and “DB_DATABASE’

Posted In:  
  comments