[Sussex] FC5 - PHP not connecting to MySQL
Brendan Whelan
b_whelan at mistral.co.uk
Fri May 5 09:30:00 UTC 2006
Ronan, thanks for the response.
A bit more info 'yum search php-mysql' lists the module.
I can connect to the database, in a terminal window, using a
username/password
<?php
$connect = mysql_connect("localhost", "root", "mypassword) or die
..................................
?>
Gives call to undefined function mysql_connect
As in the earlier email: phpinfo shows that PHP was built "--without-mysql"
which I think could be the clue.
Where should I execute "./configure --with-mysql=shared" and where will the
mysql.so file be created?
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
More information about the Sussex
mailing list