Skip to Main Content

MySQL Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem granting rights at table level

user-ehrljMay 19 2023

I am trying to GRANT a user INSERT access to just one table in the database. The demo is the database.

Following screenshot shows the schema privilege,

With this, user get following error.

Error Code: 1142. INSERT command denied to user 'user4'@'localhost' for table 'student_info'.

If I GRANT the user INSERT access at the database “demo” level, the insert works fine but that GRANT will give the user INSERT rights to all the tables in demo database.

How can I give INSERT access to just one table?

Thanks

Comments
Post Details
Added on May 19 2023
3 comments
434 views