mysql5 with php4
- From: Eric <nomail@xxxxxxxxxx>
- Date: Thu, 13 Jul 2006 12:14:29 -0400
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
.
- Follow-Ups:
- Re: mysql5 with php4
- From: J.O. Aho
- Re: mysql5 with php4
- Prev by Date: Re: Challenge: MySql result to drop down box
- Next by Date: Re: Challenge: MySql result to drop down box
- Previous by thread: www.somesite.com/123213 type pages
- Next by thread: Re: mysql5 with php4
- Index(es):
Relevant Pages
|