From owner-freebsd-questions@FreeBSD.ORG Thu Dec 30 23:54:24 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D72EB16A4CE for ; Thu, 30 Dec 2004 23:54:24 +0000 (GMT) Received: from smtp1.bahnhof.se (smtp1.bahnhof.se [213.80.101.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40C2343D2F for ; Thu, 30 Dec 2004 23:54:22 +0000 (GMT) (envelope-from mattias.bjork@sydnet.net) Received: from mfilter1.bahnhof.se (mail.bahnhof.se [213.136.33.1]) by smtp1.bahnhof.se (Postfix) with ESMTP id CFC751F8A13 for ; Fri, 31 Dec 2004 00:54:22 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by re-injector1.bahnhof.se (Postfix) with ESMTP id A87A6129125 for ; Fri, 31 Dec 2004 00:54:20 +0100 (CET) Received: from smtp5.bahnhof.se ([213.136.33.1]) by localhost (mfilter1.bahnhof.se [10.0.1.21]) (amavisd-new, port 10024) with ESMTP id 21253-06 for ; Fri, 31 Dec 2004 00:54:20 +0100 (CET) Received: from mail-gw.globecom.net (mail-gw-gc.bahnhof.net [213.80.101.101]) by smtp5.bahnhof.se (Postfix) with ESMTP id 0648693B6A for ; Fri, 31 Dec 2004 00:54:19 +0100 (CET) Received: from setiathome.birch.se (unknown [212.116.92.111]) by mail-gw.globecom.net (Postfix) with SMTP id 14DE93823F9 for ; Fri, 31 Dec 2004 00:57:10 +0100 (CET) Received: (qmail 27348 invoked from network); 30 Dec 2004 23:54:19 -0000 Received: from unknown (HELO ?192.168.10.201?) (192.168.10.201) by ns.birch.se with SMTP; 30 Dec 2004 23:54:19 -0000 Message-ID: <41D4952B.7030003@sydnet.net> Date: Fri, 31 Dec 2004 00:54:19 +0100 From: =?ISO-8859-1?Q?Mattias_Bj=F6rk?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: sv, en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at bahnhof.se Subject: Problems with MySQL and SNORT after Reboot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2004 23:54:25 -0000 Dear list, After a power failure and my computers went down, I have been starting to get error messages in sys log and on the console: Dec 28 19:50:52 setiathome snort: database: mysql_error: Can't open file: 'event.MYI'. (errno: 145) SQL=INSERT INTO event (sid,cid,signature,timestamp) VALUES ('1', '10', '4', '2004-12-28 19:50:52.597+001') Im not an expert on SQL and database servers etc and have followed this guide to make snort work with MySQL: http://bsdguides.org/guides/freebsd/security/snortreport.php I didn't find that too hard and it worked when I did it some months ago. But now after the reboot/restart of the system, the fault that I described abow have arised. I have had similar power failures before and that did not create this problem. And I have checked in /var/db/mysql/snort after the file event.MYI and its there: setiathome/var/db/mysql/snort# ls -l event.* 9:35PM -rw-rw---- 1 mysql mysql 560343 Dec 28 13:27 event.MYD -rw-rw---- 1 mysql mysql 1786880 Dec 28 16:38 event.MYI -rw-rw---- 1 mysql mysql 8642 Nov 13 18:29 event.frm setiathome/var/db/mysql/snort# So Im clueless to what could be causing the problem that I have. Perhaps its the wrong list to send this mail. But I thought that its the closest that I could think off. Best regards Mattias Björk