On Mon Aug 04, 2003 at 01:52:16AM -0300, Damian Gatabria wrote:

> I'm trying to learn some php/mysql and i've came across this
> error message whenever i try to load a one-line php file
> that connects to a local mysql database:
> 
> Fatal error: Call to undefined function: mysql_connect() in
> /var/www/html/test2.php on line 3
> 
> 
> I've googled a bit and it seems that my php module was
> not compiled with mysql support enabled? 
> 
> I'm using stock mdk packages libphp_common430-430-11mdk
> mod_php-4.3.1-1mdk, has anyone here got mysql working with these?
> could this be a config problem?

You need to install php-mysql.  "urpmi php-mysql" should do the trick.

-- 
MandrakeSoft Security; http://www.mandrakesecure.net/
Online Security Resource Book; http://linsec.ca/
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FE6F2AFD : 88D8 0D23 8D4B 3407 5BD7  66F9 2043 D0E5 FE6F 2AFD}

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to