Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
731 views
in Others by
I am getting below while installing web application on WAMP
 
PHP MySQL extension (mysql) is not loaded.
Check your settings in php.ini.
 
Under certain Linux / BSD distributions, the PHP MySQL extension is a separate package.
 
Debian: Run "apt-get install php5-mysql" and restart your webserver.
 
FreeBSD: Install the php5-mysql port, or configure MySQL support in the php-extensions port and restart your webserver.

2 Answers

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer

I uninstalled WAMP and used 

WAMPSERVER (64 BITS & PHP 5.5) 2.5

it worked for me.

0 like 0 dislike
by The go-to Tester (181 points)

At first make sure you have mysql installed properly. You can ensure it just by checking that whether you can access mysql using mysql command promp. So if you mysql is working then probably it is not loading. For that follow the steps given below

First of all, you must find your php.ini. It could be anywhere but if you create a small php file with the

<?php phpinfo(); ?>

script it will tell you where it is. Just look at the path of loaded configuration file. Common places include /etc/apache/, /etc/php4/apache2/php.ini, /etc/php5/apache2/php.ini or even /usr/local/lib/php.ini for Windows it may be C:\Users\username\PHP\php.ini

Edit your server’s php.ini and look for the following line. Remove the ‘;’ from the start of the line and restart Apache. Things should work fine now!

;extension=mysql.so

should become

extension=mysql.so

For windows it will be

;extension=mysql.dll

should become

extension=mysql.dll
 

 


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...