Hi,

Thank U for your help :-)))

I tried your test ($mysql -S /var/lib/mysql/mysql.sock...) and I can't
connect to the server.
On www.geocrawler.com I found this :

# chmod 775 /var/lib/mysql

and now it works !

Note : my /etc/my.conf was empty and your modifications are not
necessary !

Now, I've got a DNS problem but it's another thing... :-)


--> I did my installation on a RH7.0 with 1.4.1-sources ; so, I'll can
help somebody (I'll try !) because I had a lot of problem during
compilations ... :-/



Cheers,

        BL.


[EMAIL PROTECTED] a �crit :
> 
> Hi,
> 
> On Mon, 13 Aug 2001, Benoit Lathiere wrote:
> > In httpd/error_log :
> >
> > midgard-lib: mgd_connect to midgard@midgard failed: Can't connect to
> > local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
> > [Aug 13 19:51:27 2001] [warn] [client 127.0.0.1] Midgard: failed to
> > open midgard for midgard...
> 
> My best bet is that your mysql installation has its socket file at a
> different location. you can specify the location in /etc/my.cnf (depending
> on your installation, it could also be /usr/local/etc/my.cnf or a
> different location):
> 
> [client]
> # this where midgard will look
> socket = /var/lib/somewhere/mysql.sock
> 
> [mysqld]
> # this is where mysqld will open its socket
> socket = /var/lib/somewhere/mysql.sock
> 
> if you allready have a my.cnf you will find a lot of other directives,
> just put these in the approriate place. If you don't have a my.cnf, you
> can search for examples, these are usually called my-huge.cnf,
> my-large.cnf, my-medium.cnf, my-small.cnf.
> 
> > > And when I restart httpd, I can read (error_log) "PHP Fatal
> error: > Cannot find save handler midgard in Unknowm on line 0".
> 
> I never saw this one, let's see first if it is related with your first
> problem.
> 
> > My non-midgard PHP pages work, but not my midgard hosts.
> > I checked my Mysql & Midgard databases, but I don't see any error.
> >
> > What is the problem ? mod-midgard ? midgard-PHP ? or simply access rules
> > ?
> 
> Check the socket location first. Access rules can be checked by becoming
> the apache user (su - nobody or su - apache, or ... depending on your
> installation) and then trying to login to the midgard database using the
> midgard username and password:
> 
> $ mysql -u (yourmidgarduser) -p (yourmidgarddatabase)
> password:
> 
> you will be prompted for the password, and should be able to login.
> 
> wkr,
> 
> --
> Envida                     http://www.envida.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to