granting does not give the correct privileges

2002-09-24 Thread Nestor Florez

Is this an error in Mysql?
I do the follwing command from a shell
   grant insert on mydb.* to username@localhost identified by user
'pwd';
When I check the permissions the insert_priv field on user table of mysql db
is set to 'N'.

Why is that?  I can change the privileges by giving an update command.


Any ideas?,



Nestor :-)


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: granting does not give the correct privileges

2002-09-24 Thread Paul DuBois

At 9:52 -0700 9/24/02, Nestor Florez wrote:
Is this an error in Mysql?
I do the follwing command from a shell
grant insert on mydb.* to username@localhost identified by user
'pwd';
When I check the permissions the insert_priv field on user table of mysql db
is set to 'N'.

Why is that?

Because the user table holds *global* privileges only.
You didn't grant a global privilege, you granted a database-level
privilege.  Check the db table instead of the user table.

   I can change the privileges by giving an update command.


Any ideas?,


Nestor :-)


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: granting does not give the correct privileges

2002-09-24 Thread Josh Trutwin


 Is this an error in Mysql?
 I do the follwing command from a shell
grant insert on mydb.* to username@localhost identified by user
 'pwd';
 When I check the permissions the insert_priv field on user table of
 mysql db is set to 'N'.

This always gave me a lot of confusion at first.  If you select * from
user, you are seeing the user privs, which I interpret to mean that if you
have a Y for insert you can insert globally into ANY table.  You'll want
to check the db table instead which shows privs based on database name and
username.

Josh

 Why is that?  I can change the privileges by giving an update command.


 Any ideas?,



 Nestor :-)



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: granting does not give the correct privileges

2002-09-24 Thread Luc Foisy

Independent table permissions are stored in the 'db' table. Base user permissions are 
stored in the 'user' table.

 -Original Message-
 From: Nestor Florez [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 24, 2002 12:52 PM
 To: [EMAIL PROTECTED]
 Subject: granting does not give the correct privileges
 
 
 Is this an error in Mysql?
 I do the follwing command from a shell
grant insert on mydb.* to username@localhost 
 identified by user
 'pwd';
 When I check the permissions the insert_priv field on user 
 table of mysql db
 is set to 'N'.
 
 Why is that?  I can change the privileges by giving an update command.
 
 
 Any ideas?,
 
 
 
 Nestor :-)
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail 
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: granting does not give the correct privileges

2002-09-24 Thread Franz Alt

 Is this an error in Mysql?
 I do the follwing command from a shell
grant insert on mydb.* to username@localhost identified by user
 'pwd';
 When I check the permissions the insert_priv field on user table of mysql
db
 is set to 'N'.

 Why is that?  I can change the privileges by giving an update command.


I did't understand exactly, but here a mistake I made:
What plattform? Are you using WinmySQLAdmin? - look section [WinMySQLadmin]

--
[EMAIL PROTECTED]




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php