PHP forums, MySQL forums, Web Development resources

Home PageHome    PHP ResourcesTopic List    FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups 
 RegisterRegister
    ProfileProfile    Log in to check your private messagesLog in to check your private messages    Download the RSS Reader RSS Feed Download the RSS Reader RSS for this forum Log inLog in 

PHP Forum :: MySQL Forum :: Java Script Forum



Database Privelages

 
Post new topic   Reply to topic    WeberForums.com Forum Index -> MySQL General
View previous topic :: View next topic  
Author Message
sroberts82



Joined: 07 Oct 2007
Posts: 2

PostPosted: Mon Oct 15, 2007 10:06 pm    Post subject: Database Privelages Reply with quote

Hi,
I wanted to make my MySQL server accessable remotely. At first I just wanted to get it working so I granted everything to every IP using:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'the_pw' WITH GRANT OPTION

Now I want to revoke first to get me back to where I don't allow remote connections at all and then just do the same thing as

GRANT ALL PRIVILEGES ON *.* TO 'root'@'the.ip.i.want' IDENTIFIED BY 'the_pw' WITH GRANT OPTION

I was playing around with REVOKE but couldn't get it to work.
Thanks in advance
Ste
Back to top
View user's profile Send private message
lostboy



Joined: 02 May 2004
Posts: 6033
Location: toronto, canada

PostPosted: Tue Oct 16, 2007 3:24 am    Post subject: Reply with quote

Did you try just regranting the privileges to the ip that you want?
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Display posts from previous:   
WeberTrivia Questions WeberTrivia Questions
 Think you are smart? Prove it!. Try your skills with these questions :
 WeberTrivia QuestionsRecursive arrays and multi-dimensional arrays are one and the same. (PHP and MySQL)
 WeberTrivia QuestionsThe \"cache_dir\" tag of the squid configuration has a default of /var/spool/squid. (Linux)

WeberTrivia Questions



Post new topic   Reply to topic    WeberForums.com Forum Index -> MySQL General All times are GMT + 2 Hours
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 © 2001, 2005 phpBB Group
PHP Forum :: MySQL Forum :: Java Script Forum