Date: Mon, 4 Jul 2005 19:21:34 -0400 From: Michael Beattie <mtbeedee@gmail.com> To: steve lasiter <slas7713@yahoo.com> Cc: FreeBSD-Questions@freebsd.org Subject: Re: accidental overwrite Message-ID: <d4b4435a0507041621332ea7c1@mail.gmail.com> In-Reply-To: <20050704231717.88135.qmail@web33612.mail.mud.yahoo.com> References: <20050704231717.88135.qmail@web33612.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7/4/05, steve lasiter <slas7713@yahoo.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d4b4435a0507041621332ea7c1>