Grant privileges

This is a discussion on "Grant privileges" within the Databases section. This forum, and the thread "Grant privileges are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old May 23rd, 2007, 13:28
Junior Member
Join Date: Apr 2007
Location: India
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Grant privileges

Hi,

I have doubt regarding granting privileges. I have created 'test' user from 'root' user and granted all permission for test.

1) Now if i log into test user is it possible for me to revoke or grant permission for test user itself.
2) Is it possible to grant or revoke permission for other users from test user.

when i tried from test user i got the following error message:
Access denied for user 'test'@'localhost' (using password 'YEs').

but when i tried from root user it worked.

3) is it only the root user can grant or revoke permission for other users?

4)What encryption technique is used by mysql for password while creating new user.

Thanks
Thanuja.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 25th, 2007, 03:47
Most Reputable Member
Join Date: Dec 2006
Location: San Francisco
Age: 57
Posts: 1,567
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Grant privileges

If I remember my many fights with sql... the answer are

Only the root user can do any granting or revoking of permission. If I remember correctly it is because the early unix systems were established as multilple user systems and there needed to be away to handle access etc... the root user.
The root user has what would be considered administrative powers like add , revoke, allow...

I think this is correct, but if I am wrong someone please correct it. It has been a few years since I played with sql and phpadmin
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 26th, 2007, 02:46
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Grant privileges

There's a grant_priv column in the user table in the mysql database which controls whether or not a user can grank and revoke. By default, the root user of the mysql database is allowed grant_priv. However, and new users created via grant commands are not - even if given grant all.

If you (as the roor user) want a user to be able to grank and revoke, you much run a grant / revoke on his / her account with grant option - yes, that extra text - added on the end.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 26th, 2007, 05:20
Junior Member
Join Date: Apr 2007
Location: India
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Grant privileges

hi sannbe and grahame. thanks for ur reply. well i understood now and got clear idea.

What encryption technique is used by mysql for password while creating new user?

while creating new user i user password('new password'). what encryption it does.

Moreover ive been using mysql for past 8 months. Iam interested in doing MySQL developer certification. can u guide me as how to proceed?

Thanks and Regards,
Thanuja.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old May 26th, 2007, 17:53
Most Reputable Member
Join Date: Dec 2006
Location: San Francisco
Age: 57
Posts: 1,567
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Grant privileges

http://www.mysql.com/certification/50/

Will give u information on certification. I am self taught so I learned by mistakes and am still learning. hope this helps
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old May 29th, 2007, 04:47
Junior Member
Join Date: Apr 2007
Location: India
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Grant privileges

Hi thanks for ur info.I will enquire more about the certification in the test centers. Do anyone have MySQL Dump. If so please can u send it.

Thanks,
Thanuja.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old May 29th, 2007, 14:33
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Grant privileges

Quote:
Originally Posted by Thanuja View Post
Do anyone have MySQL Dump. If so please can u send it.
1. Yes

2. No need - Mysqldump is a part of the standard mysql download. Start at http://dev.mysql.com/ and navigate from there for the release number and operaing system you need it for.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
grant

Thread Tools

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


All times are GMT. The time now is 20:41.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42