Error: CDbConnection failed to open the DB connect

In order to reset my db, I uninstalled and reinstalled Magento via composer. All Magento files are in vendor/magento, however the UB Data Migration extension is in app/code. The extension appears in the Magento backend, but the following error appears

CDbConnection failed to open the DB connect

Any ideas?

3 answers

Profile photo of Mall Staff 184060.00 $tone December 22, 2016
Public

Hi jklina,
For that case, you have manual re-setting your M2 database information in the config files of our tool at:
pub/ub-tool/protected/config/db.tpl
and
pub/ub-tool/protected/config/db.php
Let’s update your M2 database information for that files.
And tell me know how it goes.
Regards,
Mall.
 

#
Profile photo of jklina 20.00 $tone December 22, 2016
Public

Got it. To be clear, I suppose the install makes a static copy of the database credentials and stores them in:
{magento-root}/pub/ub-tool/protected/config/db.php
and
{magento-root}/pub/ub-tool/protected/config/db.tpl
I was able to manually update these files with the new database credentials and I no longer received the error.
Thank you!
 

#1

Please login or Register to Submit Answer

Written By

Comments