Post by purna » Mon Oct 31, 2016 12:48 pm


In opencart, we had faced one error which was


Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/oriyabooks/public_html/system/database/mysql.php on line 6

and we have tried the following

Download the file from the following link: ... mysqli.php

Then UPLOAD the file into the following directory:


Then MODIFY the config.php file at the following directory:

First directory: /public_html
Second directory: /public_html/admin

In both directories look for the following:

define('DB_DRIVER', 'mysqli');

Chang only the underline mysqli to become mmysqli

the final looks will be as following:

define('DB_DRIVER', 'mmysqli');

Save the changes in both directories.

after doing this, we are facing now the following problem


Class 'DBmmysqli' not found in /home/onlinedrughouse/public_html/vqmod/vqcache/vq2-system_library_db.php on line 13

can anybody hep me out in rectifying this problem as currently my portal is nor coming

Can check-



Mon Oct 31, 2016 12:34 pm

Post by paulfeakins » Mon Oct 31, 2016 7:32 pm

You should make sure your web host supports MySQLi.

For quick, professional OpenCart support please email

User avatar
Active Member


Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by IP_CAM » Mon Oct 31, 2016 8:14 pm

and make sure, to read this as well, and mysqli is not the same as mmysqli

Ernie's OpenCart v. LIGHT + V-Pro + OpenShop Admin v.1.75 Test Sites - -

User avatar
Guru Member


Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 9 guests