If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Recover "user" table on Mysql?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-03, 00:00
lela lela is offline
Registered User
 
Join Date: Nov 2003
Posts: 1
Recover "user" table on Mysql?

I accidently removed the "user" table in mysql using Phpmyadmin and now I can not access any of my databases or their contents. I now get user "denied to user: 'root@localhost' for table 'ZYZ'.

Is there anyway I can recover or add a new user table. It is not allowing me.

Thank you!
Reply With Quote
  #2 (permalink)  
Old 11-18-03, 01:15
aus aus is offline
Registered User
 
Join Date: Oct 2003
Location: Denver, Colorado
Posts: 137
Re: Recover "user" table on Mysql?

Check out section 4.3.13 in the MySQL Manual:
http://www.mysql.com/doc/en/Access_denied.html
Reply With Quote
  #3 (permalink)  
Old 11-21-03, 04:35
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
You can use --skip-grant-tables to connect to your server and recreate entry in your user table
You can run the script mysql_installdb to recreate it too
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On