Updated on 2024-03-08 GMT+08:00

GoldenDB as the Source Database Type

Check Item

Description

Suggestion

GoldenDB system table mysql.user

Permission to collect information about USER and ROLE objects.

1. Create a user.

CREATE USER db-user IDENTIFIEDBY passwd;

GRANT SELECT ON mysql.user TO db-user;

Process

Permission to view all tables in information_schema.

Run the following statement:

GRANT PROCESS ON *.* TO db-user;

Object collection

Permission to collect objects

Run the following statement:

GRANT SELECT ON schema-name.* TO db-user;

GRANT SHOW VIEW ON schema-name.* TO db-user;

GRANT TRIGGER ON schema-name.* TO db-user;

NOTE:
  • To collect global objects, replace <schema-name>.* with *.*
  • By default, the user created on any GoldenDB CN node can connect to all databases. To collect database objects, the user needs to be granted to the SELECT permission.

Stored procedure and function

In MySQL 8.0.20 and later versions, if there are stored procedures and functions in the source database, grant the user SHOW_ROUTINE permission.

Run the following statement:

GRANT SHOW_ROUTINE ON *.*TO db-user ;

How Does UGO Check Database Permissions? FAQs

more