Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jun 2011 16:35:35 +0200
From:      Damien Fleuriot <ml@my.gd>
To:        freebsd-questions@freebsd.org
Subject:   Re: mysql_connect error
Message-ID:  <4DF771B7.4090104@my.gd>
In-Reply-To: <0F3C08F3CEF445EB8DC0060735DCA69D@GLENN2>
References:  <0F3C08F3CEF445EB8DC0060735DCA69D@GLENN2>

next in thread | previous in thread | raw e-mail | index | archive | help
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 www9.bnetmd.net/index.php if you have the desire to
> look.
> 
> Suggestions from lists/boards seem to all point to mysql.so 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 "extension=mysql.so"
> 
> Is there anywhere/anything else to look/do?
> 
> Thanks!
> Glenn.
> 
> 
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"


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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DF771B7.4090104>