[LBo] PHP MySQL question

Jisao dimark at securenet.net
Wed Apr 25 01:56:11 CEST 2007


Tim George wrote:
> Jisao wrote:
>
>   
>> However, when I try to work with a web page connecting to the MySQL
>> server, I get this error:
>> "Fatal error: Call to undefined function mysql_connect() in
>> /var/www/createmovie.php on line 4"
>>
>> Apparently, it would mean that I don't have mysql module installed.
>>     
>
> It looks like you need to enable the module.
>
> This may be as simple as dpkg-reconfigure php4-mysql
>
> Or find your php.ini file:
> locate php.ini
> And uncomment
> extension=mysql.so
>   
That solved the problem.  Thank you and all others who answered this thread.

I was able to find the php.ini file and uncomment the 
extension=mysql.so.  I then rebooted (I don't know how to stop/start 
services yet), then things worked.

Jisao


More information about the QnA mailing list