★ wanayoo — archive 1999 http://www.devshed.com/Server_Side/MySQL/Grant_Tables/comments.html/c851/Nouvelle recherche | Portail wanayoo

Developer Shed
Thursday, 08.17.2000  
One of the most powerful aspects of the MySQL server is the amazing amount of control the administrator has over each user's intended behavior. This control can restrict user privileges over a general part of the server, such as limited access to an entire database, but can also be as specific as limiting privileges for a specific table or even column.

HOME > SERVER SIDE > MYSQL > ARTICLE > COMMENTS    PHP SOURCE

Power Search
Free Newsletter:


Client Side
DHTML
Flash
Graphics
JavaScript
XML

Server Side
Administration
JServ
MySQL
Perl
PHP
Python
Roxen
Zend
Zope

Tools
HTML Editors
Graphic Editors
FTP Programs

Dev Talk
Forums
Mailing List
Book Samples
Brain Dump
Developer News
Feedback

ClipScripts
Add script
Edit script

Other Stuff
DevShed RDF
Propaganda!


Advertise
on DevShed
.
The MySQL Grant Tables
One of the most powerful aspects of the MySQL server is the amazing amount of control the administrator has over each user's intended behavior. This control can restrict user privileges over a general part of the server, such as limited access to an entire database, but can also be as specific as limiting privileges for a specific table or even column.

Name: rdj
Subject: Re: Grant table does not work
Date: 07-08-1999 03:20PM

Yeah, first you have to store the password in encrypted format, not plain text. Second, depending on how your host's domain name service is set up, you may need to have two entries, one for host='localhost' and one for host=whatever_your_hostname_is. I haven't figured out the latter but did get things working by adding two rows for each user.

To get the encrypted password, use the password() function. For example:

update user set password=password('mypassword') where user='myuser';

-rdj



Other posts in this thread:
 Top
 • Grant table does not work  Steve Nguyen  06-30-1999 09:07AM 
       • Re: Grant table does not work  rdj  07-08-1999 03:20PM 
             • Re: Grant table does not work  Pinkey  07-20-2000 02:35AM 
       • how to create a table  queny  04-26-2000 12:15AM 


Reply to this post:
Name:

Preview Comment.
Notify me of replies to this message.
Email:
Subject:
Tip: Put any source code between [code][/code] tags to increase readability


Visit the MySQL Forum!

New On DevShed:
• MySQL Developer Contests PostgreSQL Benchmarks
• PHP 101 (part 3) - Chocolate Fudge And Time Machines
• MaxSQL Announced
•  PHP 101 (Part 2) - Shakespeare's Rose
• PHP 101 (Part 1) - Secret Agent Man
• The Search For The Perfect Web Host
• Perl 101 (Part 5) - Sub-Zero Code
•  Submit Your News..

Hot Forum Topics:
• Credit Cards
• Backing-up in Netscape
• Want help from advanced PHP users
• making mysql timestamp look friendly
• display performance
• display performance


Adsmart Network ad
Copyright © 1997-2000 ngenuity. All rights reserved. Privacy Policy.