0

I have already transformed my Website from one server to another. Everything is working fine. When I try to open my side I found this error message

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

My Domain is http://haratistore.com/ Please advise me ...haw can I fix this type of a error

Depak Raut
  • 17
  • 4
  • Possible duplicate of [Deprecated: mysql\_connect()](http://stackoverflow.com/questions/21797118/deprecated-mysql-connect) – Sean May 03 '16 at 04:19

2 Answers2

0

UPDATE

Open opencart/config.php and opencart/admin/config.php.

Change mysql to mysqli

e.g.

//define('DB_DRIVER', 'mysql');
define('DB_DRIVER', 'mysqli');
Ali Zia
  • 3,825
  • 5
  • 29
  • 77
  • Okay you can do it manually. You will have to change mysql to mysqli in your config. I can guide you. – Ali Zia May 03 '16 at 04:54
0

I think your Opencart version is older 1.5.X so there is two options here:

1) you should upgrade your OpenCart to 2.x.x

2) I have developed for older version OpenCart PDO class which you have to upload in your opencart > system > database

Opencart-PDO

Pranav Bhatt
  • 715
  • 4
  • 8