mysql_connect error

Glenn McCalley glenn at
Tue Jun 14 14:49:23 UTC 2011

----- Original Message ----- 
From: "Damien Fleuriot" <ml at>
To: <freebsd-questions at>
Sent: Tuesday, June 14, 2011 10:35 AM
Subject: Re: mysql_connect error

> On 6/14/11 2:46 PM, Glenn McCalley wrote:
>> Seen other people have this problem but cannot get their resolutions to
>> work for me.
>> "Fatal error: Call to oundefined function mysql_connect() in etc., etc."
>> This began happening after an upgrade to php5 using the portmaster 
>> program.
>> phpinfo page does -not- show the mysql_connect function anywhere.
>> phpinfo page is at if you have the desire to
>> look.
>> Suggestions from lists/boards seem to all point to not being in
>> the php library, yet a "find" shows it is in there.
>> pkg_info shows "php5-mysql-5.3.5      The mysql shared extension for php"
>> extensions.ini shows ""
>> Is there anywhere/anything else to look/do?
>> Thanks!
>> Glenn.
> If I were you, I would reinstall the php5 mysql extension like so:
> cd /usr/ports/lang/php5-extensions
> make config
> # make sure you tick the MYSQL option
> make clean
> make
> make deinstall && make reinstall
> Then, restart your web server or PHP FCGI process, as applicable.
> You should be cool.
Thanks Damien,

Did so, mysql definitely checked, no help.  I did see that gd was not 
checked so checked that, did the make process and that cured another problem 
so I'd say the reinstall did in fact take.

The error happens when being run from the command line.  Does that make a 


More information about the freebsd-questions mailing list