Page 1 of 1

Deprecated: mysql_connect(): The mysql extension is deprecat

Posted: Tue Mar 10, 2015 9:40 am
by florenciapf
HI!
I have this message: Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/u549415239/public_html/system/library/db/mysql.php on line 7

What can i do to fix it?
I hope someone can help me!

Thansk!

Re: Deprecated: mysql_connect(): The mysql extension is depr

Posted: Tue Mar 10, 2015 10:38 am
by Cue4cheap
Please do a search on the forum... It provides the answer you seek.

Mike

Re: Deprecated: mysql_connect(): The mysql extension is depr

Posted: Tue Mar 10, 2015 6:51 pm
by florenciapf
I didnt find it. Can you give me the link?
Thanks

Re: Deprecated: mysql_connect(): The mysql extension is depr

Posted: Tue Mar 10, 2015 9:34 pm
by viethemes
You can edit the file config.php and admin/config.php,
find

Code: Select all

define('DB_DRIVER', 'mysql');
and replace with

Code: Select all

define('DB_DRIVER', 'mysqli');

Re: Deprecated: mysql_connect(): The mysql extension is depr

Posted: Tue Mar 10, 2015 11:36 pm
by ogun
^ that :)

but searching for "mysql extension deprecated" would've found this:
http://forum.opencart.com/viewtopic.php ... 80#p536087