Snort mailing list archives

Re: Snort, Barnyard, MySQL problem


From: Paul Schmehl <pschmehl_lists () tx rr com>
Date: Thu, 06 Nov 2008 15:02:35 -0600

--On Thursday, November 06, 2008 14:26:42 -0600 "Jefferson, Shawn" 
<Shawn.Jefferson () bcferries com> wrote:


I have two Snort machines, #1 is running MySQL and BASE.  I have a script to
startup snort and barnyard on #2 with priority 95, but on startup, barnyard
gives me the following error message:


Failed to connect to database snort:XXXXXX@172.17.129.150/snort: Can’t
connect to MySQL server on 172.17.129.150 (101)

Fatal Error, Quitting… Exiting.

If I SSH into #2 and then run the startup script, barnyard connects properly.

Any ideas on how to get this to work?


Sounds like you have a timing issue.  Mysql has to be completely up and running 
and waiting for connections before barnyard can login to it.  Make sure that 
the mysql script has a low enough priority that by the time barnyard starts 
mysql is ready.

-- 
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
Check the headers before clicking on Reply.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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

Current thread: