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 > Locked myself out of MySQL on server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-24-09, 01:01
froobop froobop is offline
Registered User
 
Join Date: Sep 2009
Posts: 3
Locked myself out of MySQL on server

I was playing around with the root mysql account on my server tonight and accidentally set the host permissions on the account to any, which made it root@% I assume.

Now what I've found in researching this problem is that when there is an account that isnt first defined as account@localhost and THEN account@% or @{any hostname} then attempting to login with 'account' from the system will be unsuccessful and result in this error:

DBI connect failed : Access denied for user ''@'localhost' to database 'mysql'


So what I need to know is how I can make the root user root@localhost again so I can administer my system. I've tried using this method: MySQL :: MySQL 5.0 Reference Manual :: B.1.4.1 How to Reset the Root Password - to add user root@localhost with all privelages but that doesn't seem to work.

Thanks in advance.
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