Snort
[Top] [All Lists]

Re: [Snort-users] MySQL Error (subject changed)

To: Snort-users@lists.sourceforge.net
Subject: Re: [Snort-users] MySQL Error (subject changed)
From: Nigel Houghton <nigel@sourcefire.com>
Date: Wed, 20 Dec 2006 10:17:13 -0500
Delivered-to: sp-com-lists@consult.net
Delivered-to: snort-list@securepoint.com
In-reply-to: <2DFC2892751C058AA667CFDA@paul-schmehls-powerbook59.local>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=snort-users>
List-help: <mailto:snort-users-request@lists.sourceforge.net?subject=help>
List-id: "Snort users talk about... Snort!" <snort-users.lists.sourceforge.net>
List-post: <mailto:snort-users@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/snort-users>, <mailto:snort-users-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/snort-users>, <mailto:snort-users-request@lists.sourceforge.net?subject=unsubscribe>
Mail-followup-to: Snort-users@lists.sourceforge.net
References: <s5883526.059@mail.msp.gouv.qc.ca> <20061219235626.GK2793@sourcefire.com> <2DFC2892751C058AA667CFDA@paul-schmehls-powerbook59.local>
Sender: snort-users-bounces@lists.sourceforge.net
On  0, Paul Schmehl <pauls@utdallas.edu> wrote:
> --On December 19, 2006 6:56:26 PM -0500 Nigel Houghton 
> <nigel@sourcefire.com> wrote:
> 
> >On  0, FRANCIS PROVENCHER <francis.provencher@msp.gouv.qc.ca> wrote:
> >>Hi all, im sorry to disturb you again.
> >>
> >>I have a problem when i reboot a freebsd box with snort.
> >>The problem is, that the snort instance go up before Mysql server.
> >>I have try to sleep the snort process for 15 seconde to let's Mysql go
> >>up before without success... (/usr/local/etc/rc.d/snort -->  sleep 15)
> >>
> >>But i have this error, on /var/log/message
> >>: FATAL ERROR: database: mysql_error: Can't connect to local MySQL
> >>server through socket '/tmp/mysql.sock'
> >>
> >>Some on have an idea how to let's snort stand for Mysql instance ?
> >
> >Yes. Start the mysqld daemon first. Take a look in the FreeBSD
> >documentation on how to do that.
> >
> mysql *should* have installed (if you installed it from ports) with a 
> startup script named 111.mysqld.sh in /usr/local/etc/rc.d/, which *should* 
> make it startup first.  If you compiled from source, your startup script 
> simply needs to be named mysqld.sh so that it starts before snort.sh. 
> Startup scripts are processed numerically and then alphabetically.

Take a look at rcorder, rc.subr and rc.

Also, might be worth making sure that MySQL is actually running and
using the socket /tmp/mysql.sock first though.

--
Nigel Houghton
Office Linebacker
SF VRT

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Snort-users mailing list
Snort-users@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

<Prev in Thread] Current Thread [Next in Thread>