Manage MySQL Users in Navicat Premium | Part 3: Configure User Privileges

Part 3: Configure user permissions

In this series, we've been exploring how to perform common user management tasks using Navicat's flagship product, Navicat Premium. In  Part 1  , we learned how to secure the MySQL root account using the Navicat Premium user management tool. Whereas,  Part 2  focuses on how to set up account details, account restrictions, and SSL settings for new users. In today's article, we'll move on to the remaining tabs in the new user object tab: Server Privileges, Privileges, and SQL Preview. If you want to try it out while learning? Click  here  to download a 14-day free full-featured trial version of Navicat Premium.

server permissions

This tab contains a series of permissions that apply to the entire server connection. To assign permissions, simply check the option against the server permissions listed. For example, the following configuration assigns the new user bob_s@localhost the Select, Update, Insert, and Delete permissions for the entire server:

Instead of selecting individual checkboxes, you can right-click anywhere on the Server Permissions tab and select the appropriate option from the context menu to grant and revoke all listed permissions at once:

permissions

Want to assign permissions to a specific database? You can do this in the "Permissions" tab. It shows each registered database in the connection and lists the permissions. The following Permissions tab assigns users Create, Drop and Alter permissions for the Sakila database:

Now, the new user bob_s@localhost has Create, Drop, and Alter permissions for the Sakila database in addition to Select, Update, Insert, and Delete permissions for the entire server.

Show or hide columns

Due to the large number of permissions in the tabs, you may need to scroll horizontally to see some of them. However, if certain permissions are not of interest to you, you can hide them by right-clicking anywhere in the tab and selecting " Show or Hide Columns " from the context menu. This will display a list of column names, and you can check or uncheck the relevant checkboxes to show or hide the columns. This configuration removes several admin-related permissions from the table:

Note that columns are added and removed after the save operation.

view SQL statement

Before committing your changes, you can preview the SQL statements generated by Navicat on the "SQL Preview" tab. Statements are read-only and are only used to validate changes:

After saving the changes, the contents of the SQL Preview tab are cleared and the same statement will not run again.

User Info

When a new user is added, the Users tab name will be updated from "Untitled (MYSQL) - Users" to "bob_s@localhost (MYSQL) - Users", where "MYSQL" is the connection name. If the information pane is visible, you'll see a short summary of the user's permissions, including "SSL Type", "Maximum Queries per Hour", "Maximum Updates per Hour", "Maximum Connections per Hour" and "Maximum User connections", and whether they are "superusers":

Note that you may need to refresh the tab to see the latest stats.

You can display the info pane via View > Info Pane > View Info Pane from the main menu :

notice

In Part 4, we'll learn how to centrally manage permissions using the permissions administrator tool. If you want to try it out while learning? Click here to download a 14-day full-featured trial version of Navicat Premium.

Past review 

  1. Navicat now officially supports Redis
  2. Navicat 16 officially supports OceanBase full-line database products
  3. Try Navicat 16 for free
  4. Recruit Navicat Monitor 3.0 monitoring tool experience officer |
  5. Nanny level tutorial | Navicat manual backup and automatic backup
  6. Navicat's 20-year development history | Founded in Hong Kong, China in 1999
  7. The role of WHERE 1=1 in the SQL statement
  8. Calculate percentage of total rows in SQL
  9. The interactive gift event is in progress | The prize is Navicat Premium worth 819 yuan
  10. Fake websites cause multiple security risks | Official solemn statement: Do not buy or download Navicat software from unofficial channels

Guess you like

Origin blog.csdn.net/weixin_53935287/article/details/131328491