Parameter | Description |
Database Name | Enter the database name, which can contain up to 64 letters, digits, hyphens, and underscores and must start with a letter and end with a letter or digit. |
Character Set | |
Collation | |
Authorize User | Click Add and select the account to be authorized, permissions to be granted, and host information. You can also delete the authorization record. |
Remarks | Enter remarks for the database, which can contain up to 256 characters. |
Permission | Authorization Details | Authorization SQL Statement |
Read-only | SELECT LOCK TABLES SHOW VIEW | ``GRANT SELECT, LOCK TABLES, SHOW VIEW ON `database`.* TO 'account'@'%'`` |
Read-write | ALL PRIVILEGES | ``GRANT ALL PRIVILEGES ON `database`.* TO 'account'@'%'`` |
DML | SELECT INSERT UPDATE DELETE CREATE TEMPORARY TABLES LOCK TABLES EXECUTE SHOW VIEW EVENT TRIGGER | ``GRANT SELECT, INSERT, UPDATE, DELETE, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, SHOW VIEW, EVENT, TRIGGER ON `database`.* TO 'account'@'%'`` |
DDL | CREATE DROP INDEX ALTER CREATE TEMPORARY TABLES LOCK TABLES CREATE VIEW SHOW VIEW CREATE ROUTINE ALTER ROUTINE | ``GRANT CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE ON `database`.* TO 'account'@'%'`` |
Read-only & index | SELECT INDEX LOCK TABLES SHOW VIEW | ``GRANT SELECT, INDEX, LOCK TABLES, SHOW VIEW ON `database`.* TO 'account'@'%'`` |
Was this page helpful?