PHP and MYSQL

Jared Smith jared at trios.org
Thu Jan 23 15:13:20 CST 2003


The advice saying to run the php-mysql package is correct.

>From the PHP website:
http://www.php.net/manual/en/function.mysql-connect.php

<snip>
mysql_connect() and other mysql functions not working on linux ... 
on a linux default installation you may have php installed but not mysql, then you may need to 
install mysql to run your scripts (it was my case with redhat 8.0). 
scripts will most probably fail then make sure that : 
1 your mysql daemon is started (from the initd or mannually) 
2 mysql is supported from php (a typical error would be "undefined mysql_connect() function), if 
not reconfigure php to support mysql with ./configure --with-mysql of install the php-mysql package 
that you should find in your install CDs
</snip>

-Jared




More information about the Kclug mailing list