From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 23:17:18 2005 Return-Path: X-Original-To: FreeBSD-Questions@FreeBSD.ORG 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 3156E16A41C for ; Mon, 4 Jul 2005 23:17:18 +0000 (GMT) (envelope-from slas7713@yahoo.com) Received: from web33612.mail.mud.yahoo.com (web33612.mail.mud.yahoo.com [68.142.199.244]) by mx1.FreeBSD.org (Postfix) with SMTP id D858A43D45 for ; Mon, 4 Jul 2005 23:17:17 +0000 (GMT) (envelope-from slas7713@yahoo.com) Received: (qmail 88137 invoked by uid 60001); 4 Jul 2005 23:17:17 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=hvzFGcZp6/MrMK/3KW2RbuAdpVEqCZMYebqIlz7ptehEqI1X2FJwjlDKEMJyvOsBx+1r9cO3mzRbspkQwYVoiOCKfxl3Ge08/UhNem7vpmOHrYGCI/rbFo/2v2AwBzgKWt0bpUB62hzSFCzjUgtpqYzb/n2B889JXGN/fOD1yz4= ; Message-ID: <20050704231717.88135.qmail@web33612.mail.mud.yahoo.com> Received: from [24.216.129.249] by web33612.mail.mud.yahoo.com via HTTP; Mon, 04 Jul 2005 16:17:17 PDT Date: Mon, 4 Jul 2005 16:17:17 -0700 (PDT) From: steve lasiter To: FreeBSD-Questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: accidental overwrite 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: Mon, 04 Jul 2005 23:17:18 -0000 First let me say that I've been sucessful in finding all my answer either online, at the BSD website, or in my "Absolute BSD" book until now. I recently installed FreeBSD version 5.4 along with Apache 1.3, PHP5, and MySQL 5.02. I had everything working together great until today when I tried to copy over a .sql file so MySQL could see it and run it. I accidentally copied it over to /usr/local/bin/mysql thinking mysql was a directory. You can see the problem. Now I cannot start mysql at the command prompt from the /usr/local/bin since I overwrote the the required mysql file. My question(s) are: Is there any way to revert back to the original file if this type of mistake is made? If not is there anyway to get just that one file without having to do a complete removal and installation? And finally, is the only way to NOT do this again is to use the appropriate flags with cp? Thanks for you help, Dean Lasiter ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com