From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 23:49:31 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 22C7D16A41C for ; Mon, 4 Jul 2005 23:49:31 +0000 (GMT) (envelope-from mtbeedee@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCC0243D48 for ; Mon, 4 Jul 2005 23:49:30 +0000 (GMT) (envelope-from mtbeedee@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so813760wra for ; Mon, 04 Jul 2005 16:49:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aVLy9ZvvhKAEhHSTHgUcY6ERmLjLI4VzR981AgNNjf7bCP5ZQ+Md9WIboyI4szmcn4wuxV+UL5VJH5N8R7TzMjHP12KJH/60ZdYVEftaNlIi1V6pp1riRs69HH2zEYx4EdeZ+XHNhKMR9uTkxh7JjuLvJRYWQBnT5BCVpsRgMkQ= Received: by 10.54.3.16 with SMTP id 16mr3889402wrc; Mon, 04 Jul 2005 16:21:34 -0700 (PDT) Received: by 10.54.159.9 with HTTP; Mon, 4 Jul 2005 16:21:34 -0700 (PDT) Message-ID: Date: Mon, 4 Jul 2005 19:21:34 -0400 From: Michael Beattie To: steve lasiter In-Reply-To: <20050704231717.88135.qmail@web33612.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050704231717.88135.qmail@web33612.mail.mud.yahoo.com> Cc: FreeBSD-Questions@freebsd.org Subject: Re: accidental overwrite X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Beattie List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2005 23:49:31 -0000 On 7/4/05, steve lasiter wrote: > 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. >=20 > 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? >=20 > Thanks for you help, Well, first of all, you dont need to put queries in any special location to use them... you can always run mysql with < query.sql to do that. As far as getting the executable back, you can try pkg_add'ing it back and see if that helps or wait for someone with more familiarity with the ports system to chime in. good luck