Modifying the GRANT statement

A MySQL expert describes how to modify the GRANT option, when issuing permissions for tables, with the WITH GRANT OPTION.

How do I prevent users from passing on privileges granted to them on certain tables?

When issuing the GRANT statement, you have the option of appending WITH GRANT OPTION to the end. If that option

is set, then users will be allowed to issue their own GRANT statements to other users. If you do not include that option, any attempt to issue a grant statement will be met with an access denied error.

This was first published in June 2007

Dig deeper on Open source databases

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: