From owner-freebsd-questions@FreeBSD.ORG Thu May 1 19:13:49 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24C161065672 for ; Thu, 1 May 2008 19:13:49 +0000 (UTC) (envelope-from vaughajj@jmu.edu) Received: from mpdir4.jmu.edu (mpdir4.jmu.edu [134.126.12.43]) by mx1.freebsd.org (Postfix) with ESMTP id D8E9F8FC15 for ; Thu, 1 May 2008 19:13:48 +0000 (UTC) (envelope-from vaughajj@jmu.edu) Received: from jmu74b3530692a (ip18-89.pc.jmu.edu [134.126.18.89]) by mpdir4.jmu.edu (MOS 3.8.4-GA) with ESMTP id DSZ93243 (AUTH vaughajj); Thu, 1 May 2008 15:13:47 -0400 (EDT) Message-Id: <200805011913.DSZ93243@jmu.edu> From: "John" To: Date: Thu, 1 May 2008 15:13:41 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AciruWyjbIKzfUkaQT6BP7dC7dA1jQAAXi6w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 In-Reply-To: <200805012023.22509.fbsd.questions@rachie.is-a-geek.net> X-Junkmail-Whitelist: YES (by domain whitelist at mpdir4.jmu.edu) Subject: RE: Recovering mysql data - mysqlbinlog X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2008 19:13:49 -0000 Thank you Mel and Paul for the suggestions. From what I understand the general query log is more for debugging and the binary log is for point in time recovery and replication. I'll be adding a my.cnf file (using the my-large.cnf as a skeleton) soon. I'm glad the issue was caught earlier on and now I'm the wiser thanks to you guys. I wonder why the default is no. I can't think of anyone who wouldn't find the binary logging beneficial. I didn't run myisamchk since I'm trying to restore data that was mistakenly deleted and not recovering from a corruption. -John -----Original Message----- From: Mel [mailto:fbsd.questions@rachie.is-a-geek.net] Sent: Thursday, May 01, 2008 2:23 PM To: freebsd-questions@freebsd.org Cc: John; jjvaughan@gmail.com Subject: Re: Recovering mysql data - mysqlbinlog On Thursday 01 May 2008 19:45:32 John wrote: > Can someone direct me to where the MySQL transaction logs are stored? I am > running FreeBSD 6.1 with MySql 5.0.41 which I installed from ports, no > extra config. From what I've read online, unless you disable them (which I > couldn't find in the makefile) the logs should be being created. Doing a > find / --name "bin." Didn't turn up anything. By default they end up in /var/db/mysql and are named $hostname-bin.### Also, the information you read online is incorrect. By default, binary logging (which are the transaction logs) is disabled. I don't recall whether this is a FreeBSD port specific modification. You can turn it on by putting a my.cnf in /var/db/mysql. Templates named my-$size.cnf are in /usr/local/share/mysql and are well-commented. > I'll also note that it is not in var/db/mysql with the rest of the mysql > data files and the ib_logfiles which would have been useful, but the data I > am trying to recover is from a MyISAM. I take it you tried myisamchk? -- Mel Problem with today's modular software: they start with the modules and never get to the software part.