stop mysql service, restore the backup from the mysql.user table (or: copy
from a other mysql with known users, or: copy from the installation files),
restart mysql.

----- Original Message -----
From: "Bob Dushok" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 09, 2001 1:09 PM
Subject: Deleted user


> I've made a stupid error.  While logged in as root I was deleting
> records from the user table.  Someone was talking to me while I was
> entering a command and I didn't realize what I entered until it was too
> late.  I entered:
> delete from user where user='root';
>
> I immediately used an insert statement to re-insert the root entry, but
> it's not working.  I can still log in as root but appear to have lost
> access to the mysql database.
>
> Is there any way to recover?
>
> Thanks,
> Bob
>
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to