Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 11-05-2012, 04:24 PM Deleted root as user
konetch's Avatar
Ultra Talker

Posts: 288
Trades: 0
I was messing around with my phpMyAdmin, big mistake, and I was adding a password to the root user. When I did that I saw there were two users called root, so I decided to delete the one without a password and my whole phpMyAdmin crashed. I was able to get it to log me in by changing the Listen variable in the httpd.conf, but now it tells me that I have no privileged to do anything.

I did more research and ended up trying to enter the sql code
Code:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost';
FLUSH PRIVILEGES;
to give the user privileges, but it still did not work. Any help would be appreciated. I tried uninstalling xampp and re-installing it. Still didn't fix the issue.

Thanks
__________________
Alex
konetch is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-06-2012, 04:31 PM Re: Deleted root as user
chrishirst's Avatar
Defies a Status

Posts: 43,963
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Whoops!!!


http://dev.mysql.com/doc/refman/5.0/...rmissions.html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-07-2012, 12:43 PM Re: Deleted root as user
konetch's Avatar
Ultra Talker

Posts: 288
Trades: 0
I tried that and it still didn't work because I already know the password for root, but whenever I try to do anything (create databases or insert SQL commands) it returns the error message "No privileges". Any ideas how to get rid of that. I tried the GRANT command and the FLUSH PRIVILEGES, but it still returns the same errors.

Thanks
__________________
Alex
konetch is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Deleted root as user
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26493 seconds with 11 queries