Snort mailing list archives

Re: Problems with MySQL & Snort


From: Dirk Geschke <dirk () geschke-online de>
Date: Tue, 2 Aug 2005 23:57:15 +0200

Hi Stevo,

I'm having problems getting Snort to start because it can't find the 
mysql socket file.  The error I get is:

ERROR: database: mysql_error: Can't connect to local MySQL server 
through socket '/tmp/mysql.sock'

MySQL is running just fine on this server, but the socket is 
/var/lib/mysql/mysql.sock.  I attempted to change the socket in my.cnf 
but that stopped another application I'm using from running (as it's 
looking for the /var/lib/mysql/mysql.sock), so I need to work out how to 
get Snort to look for /var/lib/mysql/mysql.sock as the MySQL socket.

Does anyone have any ideas where that socket is defined in Snort and how 
I can get around this?

normally you can specify the socket in my.cnf in both parts, the
client and server part. So I guess adjusting the client part
should help.

Otherwise you can do a simple trick: Create a symbolic link pointing
to the right socket:

 ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

This should work without problems...

Best regards

Dirk


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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: