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 > mysql problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-03, 01:26
pun84 pun84 is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
mysql problem

I was trying to install something and now i got locked out of mysql... i ran these commands

i was supposed to do
GRANT USAGE ON webdatabase.* TO 'nobody'@'localhost' IDENTIFIED BY PASSWORD 'nopasswd';

i put
GRANT USAGE ON webdatabase.* TO root'@'localhost' IDENTIFIED BY PASSWORD 'mypass';

then realized i did it wrong, so i put the
GRANT USAGE ON webdatabase.* TO 'nobody'@'localhost' IDENTIFIED BY PASSWORD 'nopasswd';

thats all i did

now it wont let me log onto mysql.... gives me access denied.... is there any way i can get back in or do i have to reinstall now? and if i have to reinstall. whats the best way of getting all traces of old mysql out and put new mysql in... please help.. thanks (this is on linux btw mandrake distro)
Reply With Quote
  #2 (permalink)  
Old 10-10-03, 03:58
icodebiz icodebiz is offline
Registered User
 
Join Date: Oct 2003
Posts: 3
You can try installing Phpmyadmin and if it gives you access, you can fix it from phpMyAdmin
Reply With Quote
  #3 (permalink)  
Old 10-22-03, 07:27
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: mysql problem

Quote:
Originally posted by pun84
I was trying to install something and now i got locked out of mysql... i ran these commands

i was supposed to do
GRANT USAGE ON webdatabase.* TO 'nobody'@'localhost' IDENTIFIED BY PASSWORD 'nopasswd';

i put
GRANT USAGE ON webdatabase.* TO root'@'localhost' IDENTIFIED BY PASSWORD 'mypass';

then realized i did it wrong, so i put the
GRANT USAGE ON webdatabase.* TO 'nobody'@'localhost' IDENTIFIED BY PASSWORD 'nopasswd';

thats all i did

now it wont let me log onto mysql.... gives me access denied.... is there any way i can get back in or do i have to reinstall now? and if i have to reinstall. whats the best way of getting all traces of old mysql out and put new mysql in... please help.. thanks (this is on linux btw mandrake distro)
Are you connecting from the localhost or another machine?
Reply With Quote
  #4 (permalink)  
Old 10-22-03, 16:00
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
Why are you using
GRANT USAGE ON webdatabase.* TO 'nobody'@'localhost' IDENTIFIED BY PASSWORD 'nopasswd';

Instead of

GRANT USAGE ON webdatabase.* TO nobody@'localhost' IDENTIFIED BY PASSWORD 'nopasswd';
or
GRANT USAGE ON webdatabase.* TO nobody@localhost IDENTIFIED BY PASSWORD 'nopasswd';

and did you use flush privileges ?
__________________
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