phpMyAdmin Global Privileges Help Please!!!!!

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
keith-f
-


Joined: 27 May 2003
Posts: 18
Location: North East England

PostPosted: Tue Jan 17, 2006 1:13 am    Post subject: phpMyAdmin Global Privileges Help Please!!!!! Reply with quote

Just as I thought I had a handle on MySQL and phpMyAdmin, Built up my database smashing.... 'Cooking with Gas' In my wisdom/folly I decided to change the Global Privileges from the root user on localhost. Mindful of the consequences of the 'DROP' command..... Yep! I removed it !.......

The logic was, that in the event that I would need to use the 'DROP' instruction, I could simply reinstate it. Mmmmm... Well I can't.

When I check the 'DROP' structure in the Global Privileges and then 'GO'

It refuses to reinstate the 'DROP' instruction and reports:

#1045 - Access denied for user 'root'@'localhost' (using password: YES)

I'm really 'STUFFED' with this one as I need to drop and rebuild a table.

Does anyone know how I can reinstate the ‘DROP’ instruction?
_________________
Keith
It is sometimes wiser to keep one's mouth shut and look foolish, Than to open it and remove all doubt!
Back to top View user's profile Send private message Send e-mail
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Tue Jan 17, 2006 10:23 am    Post subject: Reply with quote

Stop the MySQL server if it's running, make a file in C:\ called mysql.txt (The name doesn't really matter though, to be honest.), paste inside the file:
Code:
REVOKE ALL PRIVILEGES ON *.* FROM 'root'@'localhost';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0;


Then, at the command line (cmd.exe) type:
Code:
C:\mysql\bin\mysqld-nt.exe --init-file=C:\mysql.txt

Replacing C:\mysql\bin\mysqld-nt.exe with the path to your mysql binary, if incorrect.
Doing that correctly, should restore all privilages to root.
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Tue Jan 17, 2006 11:41 am    Post subject: Reply with quote

The answer to my preyares *bad spelling* , Thanks MonkeyNation!
Back to top View user's profile Send private message Visit poster's website MSN Messenger
keith-f
-


Joined: 27 May 2003
Posts: 18
Location: North East England

PostPosted: Tue Jan 17, 2006 12:42 pm    Post subject: Cured! Reply with quote

What a STAR!

That's ANOTHER fine mess you've got me out......

I had mental premonitions of having to restore last weeks tape backup, with allsorts of dread and horror associated.

MANY THANKS…

BTW You don’t want to come up to this part of the Country – They do horrible things to monkeys just down the road from here! (Hartlepool) It would be such a waste of very useful knowledge!
_________________
Keith
It is sometimes wiser to keep one's mouth shut and look foolish, Than to open it and remove all doubt!
Back to top View user's profile Send private message Send e-mail
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Tue Jan 17, 2006 12:47 pm    Post subject: Reply with quote

Just wondering although I mentioned it on the main Web Dev page if you you would like me to credit you? http://www.mrwiseone.com/web_dev-phpMyAdmin%20Global%20Privileges.php

Thanks Tom

EDIT: Stuff it lol I'll credit any of these to there typers anyways. ;-P
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group