[Snort-users] Snort Beer Question

Dominik Gehl dgehl at ...13341...
Fri Sep 23 06:51:09 EDT 2005


Did you install MySQL through RPM ? If yes, you should be able to start
the daemon with
service mysqld start

The mysql executable is only the client and is trying to connect to an
already running server ...

Dominik

On Fri, 2005-09-23 at 06:32 -0700, Theodore Stout wrote:
> Hello there,
> 
> I am drinking Asahi Super Dry right now.
> 
> This is the message I got
> [root at ...274... support-files]#
> /usr/local/mysql/bin/mysql
> ERROR 2002: Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (2)
> [root at ...274... support-files]#
> 
> /etc/my.cnf is set as:
> 
> # The following options will be passed to all MySQL
> clients
> [client]
> #password       = password
> port            = 3306
> socket          = /var/lib/mysql/mysql.sock
>                                                       
>                          
> # Here follows entries for some specific programs
>                                                       
>                          
> # The MySQL server
> [mysqld]
> port            = 3306
> socket          = /var/lib/mysql/mysql.sock
> 
> 
> 
> --- Dominik Gehl <dgehl at ...13341...> wrote:
> 
> > Hi,
> > 
> > the server socket value can be set with
> > 
> > [mysqld]
> > socket=/var/lib/mysql/mysql.sock
> > 
> > in the /etc/my.cnf file.
> > 
> > Did you restart MySQL after changing the socket
> > value in this file ? Do
> > you have any MySQL error messages in your logs ? Is
> > the mysql server
> > process running ?
> > 
> > Dominik
> > 
> > On Fri, 2005-09-23 at 03:52 -0700, Theodore Stout
> > wrote:
> > > All,
> > > 
> > > Okay, got a problem with installing Snort which
> > has to
> > > be easy to answer.  I have looked on the web, at
> > > Harper, and other sources and I still can not
> > figure
> > > this one out.  I even took the Sourcefire Snort
> > class
> > > and followed the manual but this problem is still
> > > there and I know it is easy but I can't find it.
> > > 
> > > As such, I have already drunk 2 big hits of beer
> > and
> > > am planning on drinking more.
> > > 
> > > Okay, while installing MySQl I am getting the
> > > following error message;
> > > 
> > > "can't connect to local MySQL server through
> > socket '
> > > /tmp/mysql.sock' "
> > > 
> > > I am at my wits end as to why this occuring. 
> > There is
> > > what I have already done so you don't tell me
> > > something I already know.
> > > 
> > > cp support-files/my-medium.cnf /etc/my.cnf
> > > vi /etc/my.cnf
> > > [client] 
> > > socket=/var/lib/mysql/mysql.sock 
> > > :wq
> > > 
> > > I have changed the socket value to various
> > settings
> > > looking for the stupid location of that mysql.sock
> > but
> > > I can not find it.  I have tried this on the
> > following
> > > OS's.  (Should be meaningless but someone will
> > ask)
> > > 
> > > RHEL 4
> > > FC 1-4 (Yeah I have done this 5 times, all on the
> > > airplane)
> > > 
> > > I got this problem everytime when I was typing
> > > /usr/local/mysql/bin/mysql  The error message
> > would
> > > only change value from (2), (20) to (111) as I
> > changed
> > > the value of the sockets settinig.  
> > > 
> > > Any idea?  I have my beer ready.  Hopefully this
> > will
> > > be the last time I ever install Snort and can just
> > use
> > > Soucefire IS....
> > > 
> > > Theo
> > > 
> > > 
> > > 
> > >
> >
> -------------------------------------------------------
> > > SF.Net email is sponsored by:
> > > Tame your development challenges with Apache's
> > Geronimo App Server. Download
> > > it for free - -and be entered to win a 42" plasma
> > tv or your very own
> > > Sony(tm)PSP.  Click here to play:
> > http://sourceforge.net/geronimo.php
> > > _______________________________________________
> > > Snort-users mailing list
> > > Snort-users at lists.sourceforge.net
> > > Go to this URL to change user options or
> > unsubscribe:
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/snort-users
> > > Snort-users list archive:
> > >
> >
> http://www.geocrawler.com/redir-sf.php3?list=snort-users
> > 
> > 
> > 
> >
> -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's
> > Geronimo App Server. Download
> > it for free - -and be entered to win a 42" plasma tv
> > or your very own
> > Sony(tm)PSP.  Click here to play:
> > http://sourceforge.net/geronimo.php
> > _______________________________________________
> > Snort-users mailing list
> > Snort-users at lists.sourceforge.net
> > Go to this URL to change user options or
> > unsubscribe:
> >
> https://lists.sourceforge.net/lists/listinfo/snort-users
> > Snort-users list archive:
> >
> http://www.geocrawler.com/redir-sf.php3?list=snort-users
> > 






More information about the Snort-users mailing list