Warning: MySQL extension needs to be loaded for OpenCart to work

I have installed XAMPP on windows. Apache is running just fine on port 80 and 443, and mysql is also running on 3306. I am installing open cart 1.5 locally but on pre-installation its giving me error "Warning: MySQL extension needs to be loaded for Open Cart to work!" Mysql current settings is off. Every thing looks fine , i have searched a lot but couldn't find any thing. What should i do? My php version is PHP Version 5.5.33 and my open cart version is 1.5.4.

Answers


Open file step_2.php under install folder comment the following line

 /*
if (!extension_loaded('mysql')) {
                        $this->error['warning'] = 'Warning: MySQL extension needs to be loaded for OpenCart to work!';
                }*/

On step 3 select MysqlI. It will work on PHP 7

Note : I know this is not a clean way, But we can use this as hack for 1.5.x versions.


Please open following folder: xampp\php

and edit php.ini in text editor. search for extension=php_mysql.dll and then remove ; form beginning of line. turn off the MySql server and turn on back. you will be good.


Need Your Help

Message string messed up when sending email with Codeigniter email class

php codeigniter character-encoding html-email iso-8859-1

So I encountered a problem while making a script to send email using Codeigniter's Email class. I set the configuration like this:

Can we use conditions with expectedExceptions in TestNG

java unit-testing testing automated-tests testng

I'm using TestNG. I'm having a test case which is running for both admin users as well as standard users. For admin users expected behavior is no exceptions and task get success while for standard ...