Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jul 2006 10:42:46 -0600
From:      =?ISO-8859-1?Q?C=E9sar_Amaya?= <csar@123.com.sv>
To:        freebsd-questions@freebsd.org
Subject:   snort and mysql connection at start troubles
Message-ID:  <44AA9A86.5000602@123.com.sv>

next in thread | raw e-mail | index | archive | help
Hi list

I am installing SNORT 2.4.5 to log into a MySQL-5.1 database. snort logs 
are being stored fine into the db, but whe the system start snort fails 
because of this: snort[396]: FATAL ERROR: database: mysql_error: Can't 
connect to local MySQL server through socket '/tmp/mysql.sock' (2)

this is the configuration line in the snort.conf file

output database: log, mysql, user=snortids password=PswIdS dbname=snort 
host=localhost

when I changed the 'localhost' name to 127.0.0.1 I got the following error

snort[401]: FATAL ERROR: database: mysql_error: Can't connect to MySQL 
server on '127.0.0.1' (61)

All of this happens at start time. After system started I start snort 
manually and connect to mysql just fine.

It seems that snort start earlier than mysql. I want to start mysql 
earlier than snort but I donīt know how.

Can some body help me?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44AA9A86.5000602>