[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE: [cobalt-developers] on qube3 php not talk to mysql
- Subject: Re: RE: [cobalt-developers] on qube3 php not talk to mysql
- From: David Keyes <dave@xxxxxxxxxxxxxxx>
- Date: Mon Jul 22 08:28:01 2002
- Organization: steeldetail.com
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
I had to load the module & create a socket, so the begining of my connection scripts look like this:
function connect()
{
$test=extension_loaded('mysql.so');
if ($test == FALSE) {
dl('mysql.so');
$sockset=shell_exec("ln -s -f /var/lib/mysql/mysql.sock /tmp/mysql.sock");
} .................
Dave.
>
> From: Carlos González-Cadenas <cgonzalez@xxxxxxxxxxxxx>
> Date: 2002/07/22 Mon AM 07:49:56 MST
> To: <cobalt-developers@xxxxxxxxxxxxxxx>
> Subject: RE: [cobalt-developers] on qube3 php not talk to mysql
>
> by default, php is compiled -with--mysql support in qube3..., it's only
> about editing php.ini and changing
>
> ;extension=mysql.so
>
> to uncommented
>
> extension=mysql.so
>
> and so on...
>
> -----Mensaje original-----
> De: cobalt-developers-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]En nombre de paulos
> Enviado el: lunes, 22 de julio de 2002 15:42
> Para: cobalt-developers@xxxxxxxxxxxxxxx
> Asunto: RE: [cobalt-developers] on qube3 php not talk to mysql
>
>
>
> make sure you compiled php with mysql support
>
> ./configure -with--mysql
>
>
>
>
> ---------- Original Message -----------
> From: Carlos González-Cadenas <cgonzalez@xxxxxxxxxxxxx>
> To: <cobalt-developers@xxxxxxxxxxxxxxx>
> Sent: Mon, 22 Jul 2002 16:18:59 +0200
> Subject: RE: [cobalt-developers] on qube3 php not talk to mysql
>
> > Make sure you have enabled mysql support in /etc/httpd/php.ini
> >
> > -----Mensaje original-----
> > De: cobalt-developers-admin@xxxxxxxxxxxxxxx
> > [mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]En nombre de Davide
> > Spanò
> > Enviado el: lunes, 22 de julio de 2002 16:01
> > Para: cobalt-developers@xxxxxxxxxxxxxxx
> > Asunto: [cobalt-developers] on qube3 php not talk to mysql
> >
> > In my Qube3 there are php and mysql installed and both working but
> > php will not talk to mysql when a script is run. With telnet I'm
> > able to read and write into mysql database and the <? echo phpinfo()
> > ?> command work perfectly. But if I try to talk with mysql by php as
> > following:
> >
> > <?
> > $connessione = mysql_connect("xxx", "yyy", "zzz")
> > or die('I CAN'T CONNECT');
> > if ($connessione) {
> > $msg = "I'M CONNECTED
> > }
> > ?>
> > <HTML>
> > <HEAD>
> > <TITLE>Connection to MySQL</TITLE>
> > </HEAD>
> > <BODY>
> > <? echo "$msg"; ?>
> > </BODY>
> > </HTML>
> > the following error message appair:
> >
> > Fatal error: Call to undefined function: mysql_connect() in
> > /home/groups/home/web/connessione_db.php on line 3
> >
> > many thanks - dave@xxxxxxx
> > davide spanò
> >
> > _______________________________________________
> > cobalt-developers mailing list
> > cobalt-developers@xxxxxxxxxxxxxxx
> > http://list.cobalt.com/mailman/listinfo/cobalt-developers
> >
> > _______________________________________________
> > cobalt-developers mailing list
> > cobalt-developers@xxxxxxxxxxxxxxx
> > http://list.cobalt.com/mailman/listinfo/cobalt-developers
> ------- End of Original Message -------
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>