THe manual recommends restarting the server with --skip-grants.
Fix your user table, and flush privileges to reload the grant tables.

Bob Dushok wrote:
> 
> 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