MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 17th, 2003, 12:54 PM
Robert K S Robert K S is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Cleveland OH USA
Posts: 8 Robert K S User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Robert K S
Initial MySQL users: localhost vs. "hostname"

I have just set up MySQL and the phpmyadmin script and I would like to add some users and do some other administrative tasks to assure security. Above all, I want to make sure no user (or php script) will have access to any databases without a user name and password.

Right now if I look at the list of users, I see:
Any "hostname"
root "hostname"
Any localhost
root localhost

1. What's the difference between "hostname" users and localhost users? Why are there two? Is one of them safe to delete? If so, which one ("hostname" or localhost)? (If it's of any relevance, I only plan on accessing the databases through SSH sessions to the host machine on which the MySQL server is running, and through PHP scripts also running on the same host machine.
2. If there IS a difference, when I create new users, do I need to
create two of each? I.e.,

newuser1 "hostname"
newuser1 localhost

3. What's the deal with the Any users? Why do they exist? Can I delete them? Like I said, I don't want anyone to have access to the databases without a MySQL username and password.

I've searched the documentation and the web for answers, but I can't seem to find what I'm looking for. Thanks to you if you can help, and you rock.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Initial MySQL users: localhost vs. "hostname"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT