If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Grant permissions - internet users

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-09-04, 12:24
pesty pesty is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
Red face Grant permissions - internet users

Hi all,

I'm new to the forum and to mysql. I'm having trouble with grant permissions. I want interent users to be able to select, and delete their own records. The code I entered not only returns a syntax error, but it also changes the way I entered it.

************************************************** *
Here is how I entered it:
************************************************** *****
GRANT SELECT , DELETE ON pets.members TO "username"@"host"

INDENTIFIED BY "password" ;


************************************************** **
This is the mysql error message and notice. See how it changed INDENTIFIED BY to lowercase and ran it into the username@host? Plus it removed the semicolon, is it suppose to do that?
************************************************** ******
Database pets - Table members running on localhost
Error

SQL-query :

GRANT SELECT ,
DELETE ON national_pets.members TO "username"@"host"indentified BY "password"

MySQL said:


You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'INDENTIFIED BY "password"' at line 1
Back
************************************************** ******

Can someone help me?

Thanks Pesty
Reply With Quote
  #2 (permalink)  
Old 08-09-04, 16:06
jmut jmut is offline
Registered User
 
Join Date: Mar 2004
Location: Bulgaria
Posts: 22
Quote:
Originally Posted by pesty
....
GRANT SELECT , DELETE ON pets.members TO "username"@"host"

INDENTIFIED BY "password" ;
....
Thanks Pesty
Try "IDENTIFIED" instead of "INDENTIFIED"
Reply With Quote
  #3 (permalink)  
Old 08-10-04, 12:08
pesty pesty is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
I feel so sheepish!

Thanks for pointing out the typo error.

Pesty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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