Re: [SLUG] php-mysql support

From: Paul M Foster (paulf@quillandmouse.com)
Date: Thu Dec 28 2006 - 01:08:18 EST


Robert Waldo wrote:
> I am trying to access a mysql database on my Fedora Core 5 webserver.
> PHP 5.1.6 comes with the package already compiled. After reading
> several websites (including the php.net <http://php.net> and mysql.com
> <http://mysql.com> sites), I found that starting with PHP 5.x, mysql
> extensions are not included. According to:
> http://us3.php.net/manual/en/faq.databases.php#faq.databases.mysql.php5
> <http://us3.php.net/manual/en/faq.databases.php#faq.databases.mysql.php5>,
> all unix users, at least the ones who know what they're doing, add
> --with-mysql=/usr when compiling their php package. When I look at
> phpinfo() it shows it was compiled --without-mysql. Therefore I cannot
> do a 'mysql_connect' in any of my scripts. I tried to update to php
> 5.2, but the mysql libs are not stored in /usr as they should be. Does
> anyone have any ideas or direct me to an article that may remedy this
> situation. I am getting extremely frustrated. I have googled until my
> fingers bleed.
>

My experience with Red Hat is very old. But if it's anything like
Debian, there is probably a package, something like php5-pgsql, which
brings in the MySQL bindings for PHP. Look for that and see what you find.

Paul

-- 
Paul M. Foster
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:14:56 EDT