Posted by Eric on 07/13/06 16:14
I want to upgrade my database to 5.0 while using php4
we have been using php4 provided by RHEL, which i don't want to
recompile myself right now, because i'll have to do it everytime there
is an update.
What i did was instal mysql's devel compat and client packages.
Then got the source rpm from rhel.
cd /usr/src/redhat/BUILD/php-4.3.2/ext/mysql/
phpize
../configure --with-mysql=/usr
make
cp ../modules/mysql.so /usr/lib/php4/
i wrote a test script, and get the following.
[13-Jul-2006 12:06:23] PHP Fatal error: Call to undefined function:
mysql_connect() in /root/my5/phpmytest.php on line 2
[13-Jul-2006 12:07:44] PHP Warning: Unknown(): Unable to load dynamic
library '/usr/lib/php4/mysql.so' - /usr/lib/php4/mysql.so: undefined
symbol: php_sprintf in Unknown on line 0
Navigation:
[Reply to this message]
|