Call to undefined function: mysql_connect()

William Carty yellowdog-general@lists.terrasoftsolutions.com
Thu May 23 15:59:14 2002


----- Original Message -----
From: "Rob Brandt" <rbrandt@sbdsl.com>
To: <yellowdog-general@lists.terrasoftsolutions.com>
Sent: Thursday, May 23, 2002 17:48
Subject: Call to undefined function: mysql_connect()


> Still putting together the pieces of my new YDL 2.2/G3 web server.
> I'm starting to transfer over some web sites, and testing several
> php/mysql apps, they all result in the same error:
>
>     Call to undefined function:  mysql_connect()
>
> I'm certain that mysql is installed and working as I can browse my
> db's in Webmin.  Something else is wrong and I don't know what.
> Running phpinfo() says that I have mysql support in the dbx section.
> I used the default apache/mysql/php packages as supplied in the 2.2
> base distro.
>
> Any ideas?
>
> Rob
> --

I'm really not familiar with the PPC RPM's, so I don't know whether there
are  any quirks like this associated with using them.

First thing I would check would be the /etc/php.ini file & make sure all of
the mysql entries are set to what they should be.  You'll find comments in
the file telling you what the various settings are for.  Give that another
look & see if anything is fouled up there.  Make sure you restart apache if
you modify php.ini.

Aside from that, really not sure.  The error plainly tells you what the
problem is, but you seem to have gotten conflicting info from phpinfo().
Dunno.  If all else fails you may try removing the php rpm & building from
source with the '--with-mysql[=DIR]' flag.

Good luck.