I'll bet somebody did a
cat afile > /usr/local/mysql/bin/mysql
cat afile | /usr/local/mysql/bin/mysql
That is why you should not be doing stuff as root.
s . keeling wrote:
> On Sat, Sep 01, 2001 at 04:43:25AM +0100, christopher sagayam wrote:
>> so how to fix the error ?
>> How did file /usr/local/mysql/bin/mysql
>> become a text file ?
> You tell us.
> Regardless, is your data still intact? Make sure it's safe, rip out
> mysql, and re-install.
> Binaries don't just "become text files" by themselves. This takes human
> intervention in one way or another. How secure is your network? Have
> you checked your system for intrusions? How many people have access
> to your system? What's their level of skill on the system?
> If you still have your data files, all may not be lost.
Gerald L. Clark