[Sussex] Getting PHP to work with MySQL

Peter Jones peterdjones at yahoo.com
Tue Feb 5 19:22:01 UTC 2008


Have your tried compiling the soruce with --with-mysql
?

--- Brendan Whelan <b_whelan at mistral.co.uk> wrote:

> I have just installed a copy of Fedora Core 6 and
> I'm having trouble 
> getting PHP programs to connect to a MySQL database.
> Individually, the PHP and MySQL both work but when I
> try to connect from 
> a PHP program to MySQL I get "Call t undefined
> function 
> mysql-connect()".  The mysql connection looks to be
> configured in 
> php.ini. The log files aren't showing anything
> useful. I tried did a 
> search in yum for php-mysql and then ran "yum
> install php-mysql.i386", 
> which gave "nothing to do".  A mysql.so file resides
> in 
> /usr/lib/php/modules/
> I have exhausted what I can think of doing - any
> suggestions. Thanks, 
> Brendan
> 
> __ 
> Sussex mailing list
> Sussex at mailman.lug.org.uk
> E-mail Address: sussex at mailman.lug.org.uk
> Sussex LUG Website: http://www.sussex.lug.org.uk/
> https://mailman.lug.org.uk/mailman/listinfo/sussex
> 



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs




More information about the Sussex mailing list