Brian:

> > Today, I installed MySQL via the binary RPMs from the Red Hat site. I
> > installed the following:
> >     mysql-3.23.41-1.i386.rpm
> >     mysql-devel-3.23.41-1.i386.rpm
> >     mysql-server-3.23.41-1.i386.rpm
> >     mysqlclient9-3.23.22-6.i386.rpm
> >
> > However, when using the mysql_connect() function within PHP4 code, I get
> > the following error:
>
> Look for the php-mysql package (either from your cd or where you got the
> other rpms) and install that.
>
> RH does not compile the DB support into PHP. They use the
> loadable modules
> that PHP supports. This gives greater flexibility as to what is
> running on
> each machine (you can consider it good or bad, but I like the
> module thing).
>
> You may have to add (or uncomment) a line or two in your php.ini
> file to make
> sure PHP knows to load the module after you install it. I don't
> remember if
> the rpm does it for you or not.

That did the trick! Thank you very much.

BTW, the RPM file appears to have installed /usr/lib/php4/mysql.so file. I
suspect that this is the module that you referred to??

As far as I can tell, my php.ini file was not modifed by the install.
Nonetheless, everything seems to work now.

Thanks again for your help. I was quite frustrated...

Take care.

Brian Schang



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to