简体   繁体   中英

Add table privileges to user using mySQL Workbench

I've created a user using the server administration tools in mySQL workbench and can assign global and database permissions to those users from the administration tool.

Is there a way to assign those users (stored in mysql.users) table level privileges in mySQL Workbench?

Thanks

I did find a workaround. Not elegant, but it works.

  1. Open your database as an EER Model.
  2. 2 tabs will open, go to the one that is not selected by default (MySQL Model).
  3. Follow the directions here to add roles/users.
  4. Forward Engineer the model back to the database. You can deselect all objects except the users.
  5. You can either have Workbench create the users, or, if you already have the users, just set the grant statements

Not pretty, but it works

Unfortunatly there's no way you can do that in Workbench Administrator module, as of WB 5.2.37.

You can always grant the access using SQL commands (see previous comments) in Workbench's SQL Query Editor. Just don't forget to FLUSH PRIVILEGES after that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM