Hi
I'm trying to connect OC 2.3.0.2 to a remote database.
If I use a localhost database, there are no issues, but we want to move the database to a remote server. I've edited both of the config files at / and admin/ but keep getting Error: Could not load database adaptor myslqi!
I've tried adding DIR_DATABASE with the path that goes to /library/db/ where the mysqli.php file is located but still get the same error.
Does anyone have any ideas? Again, I seem to be able to connect to a localhost database without any issues, this only starts when I try to connect to the database on a remote server.
Thanks
Linda
I'm trying to connect OC 2.3.0.2 to a remote database.
If I use a localhost database, there are no issues, but we want to move the database to a remote server. I've edited both of the config files at / and admin/ but keep getting Error: Could not load database adaptor myslqi!
I've tried adding DIR_DATABASE with the path that goes to /library/db/ where the mysqli.php file is located but still get the same error.
Does anyone have any ideas? Again, I seem to be able to connect to a localhost database without any issues, this only starts when I try to connect to the database on a remote server.
Thanks
Linda
try either this:
or then this:
to exist in your config.php files, to find out, what works.
Ernie
Code: Select all
// DB
define('DB_DRIVER', 'mysql');
Code: Select all
// DB
define('DB_DRIVER', 'mysqli');

Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
You just have a typo in your config. Correct is "mysqli". Do not use "mysql" driver it was deprecated a long time ago.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Sorry, I am using mysqli as the db driver. My typo was in the forum not in the config file (man I wish it was that easy!)
Then you have a problem with your server and might wanna contact your hosting provider.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Who is online
Users browsing this forum: No registered users and 18 guests