Yes, I have MySQL running all the time. I noticed this in
ext/mysql/config.m4 :

  MYSQL_SOCK=/tmp/mysql.sock
  for i in  \
      /var/run/mysqld/mysqld.sock \
      /var/tmp/mysql.sock \
      /var/lib/mysql/mysql.sock \
      /var/mysql/mysql.sock \
      /Private/tmp/mysql.sock \
      ; do
    if test -r $i; then
      MYSQL_SOCK=$i
    fi
  done

...which doesn't quite match my socket at /var/run/mysql/mysql.sock -
defaulting to /tmp/mysql.sock.

I also noticed on a phpinfo() output that MYSQL_SOCK = /tmp/mysql.sock.
Immediately below that, both the local and master value of
mysql.default_socket is /var/run/mysql/mysql.sock - which is being picked up
from my php.ini. It's just not having any effect.

I am compiling 4.2.0 right now on the machine previously running 4.1.2, to
see if it works. That machine has a manually compiled MySQL on it though,
and the socket IS /tmp/mysql.sock

Cheers
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> thanks! Do you know if MySQL was started during ./configure ?
>
> Derick
>
> On Wed, 24 Apr 2002, Daniel Swarbrick wrote:
>
> > I'm configuring with
> >
'configure --with-apxs=/usr/sbin/apxs --with-pgsql --with-mysql --with-pdfli
> >
b --with-zlib --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf
> > --with-imap --with-gettext --enable-cli'
> >
> > The MySQL stuff from my config.log says
> > configure:39658: checking for MySQL support
> > configure:39698: result: yes
> > configure:39922: checking for MySQL UNIX socket
> > configure:39941: result: /tmp/mysql.sock
> >
> > However this is incorrect - the socket is in fact
> >  /var/run/mysql/mysql.sock - as per default Slackware 8.0 install. I am
also
> > specifying this manually in my php.ini
> >
> > "Edin Kadribasic" <[EMAIL PROTECTED]> wrote in message
> > 068b01c1eb70$553cd880$[EMAIL PROTECTED]">news:068b01c1eb70$553cd880$[EMAIL PROTECTED]...
> > > >I don't know whether this is related or not, but I've also found that
> > since
> > > >upgrading to PHP 4.2.0 it is impossible to get mysql_connect() to
connect
> > > >via a UNIX socket. No matter whether I specify a socket manually or
not,
> > it
> > > >always connects via TCP.
> > >
> > > I cannot reproduce this. Could you please give us some more info on
your
> > > installation. Also please search for "checking for MySQL UNIX socket"
in
> > > your config.log and tell us the result.
> > >
> > > Edin
> > >
> >
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> -----------------------------------------------------------------------
>                  Did I help you? Consider a gift:
>       http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
> -----------------------------------------------------------------------
>               PHP: Scripting the Web - [EMAIL PROTECTED]
>                 All your branches are belong to me!
>             SRM: Script Running Machine - www.vl-srm.net
> -----------------------------------------------------------------------
>



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to