The question is tagged with ubuntu
, but the solution of un-commenting the extension=mysqli.dll
is specific to windows. I am confused here?!, anyways, first thing run <? php phpinfo ?>
and search for mysql*
under Configuration
heading. If you don't see such a thing implies you have not installed or enabled php-mysql
. So first install php-mysql
sudo apt get install php-mysql
This command will install php-mysql
depending on the php
you have already installed, so no worries about the version!!.
Then comes the unix specific solution, in the php.ini
file un-comment the line
extension=msql.so
verify that msql.so
is present in /usr/lib/php/<timestamp_folder>
,
ELSE
extension=path/to/msql.so
Then finally restart the apache
and mysql
services, and you should now see the mysql
section under Configrations
heading in phpinfo page