Hướng dẫn what is dynamic mysql?
16.2.3.2 Dynamic Table Characteristics Dynamic storage format is used if a Dynamic format is a little more complex than static format because each row has a header that indicates how long it is. A row can become fragmented (stored in noncontiguous pieces) when it is made longer as a result of an update. You can use Dynamic-format tables have these characteristics:
6.2.2 Privileges Provided by MySQLThe privileges granted to a MySQL account determine which operations the account can perform. MySQL privileges differ in the contexts in which they apply and at different levels of operation:
Privileges also differ in terms of whether they are static (built in to the server) or dynamic (defined at runtime). Whether a privilege is static or dynamic affects its availability to be granted to user accounts and roles. For information about the differences between static and dynamic privileges, see Static Versus Dynamic Privileges.) Information about account privileges is stored in the grant tables in the Important Some MySQL releases introduce changes to the grant tables to add new privileges or features. To make sure that you can take advantage of any new capabilities, update your grant tables to the current structure whenever you upgrade MySQL. See Section 2.11, “Upgrading MySQL”. The following sections summarize the available privileges, provide more detailed descriptions of each privilege, and offer usage guidelines.
Summary of Available Privileges The following table shows the static privilege names used in The following table shows the dynamic privilege names used in Static Privilege DescriptionsStatic privileges are built in to the server, in contrast to dynamic privileges, which are defined at runtime. The following list describes each static privilege available in MySQL. Particular SQL statements might have more specific privilege requirements than indicated here. If so, the description for the statement in question provides the details.
Dynamic Privilege DescriptionsDynamic privileges are defined at runtime, in contrast to static privileges, which are built in to the server. The following list describes each dynamic privilege available in MySQL. Most dynamic privileges are defined at server startup. Others are defined by a particular component or plugin, as indicated in the privilege descriptions. In such cases, the privilege is unavailable unless the component or plugin that defines it is enabled. Particular SQL statements might have more specific privilege requirements than indicated here. If so, the description for the statement in question provides the details.
Privilege-Granting Guidelines It is a good idea to grant to an account only those privileges that it needs. You should exercise particular caution in granting the
Static Versus Dynamic PrivilegesMySQL supports static and dynamic privileges:
For example, the The remainder of this section describes how dynamic privileges work in MySQL. The discussion uses the term “components” but applies equally to plugins. Note Server administrators should be aware of which server components define dynamic privileges. For MySQL distributions, documentation of components that define dynamic privileges describes those privileges. Third-party components may also define dynamic privileges; an administrator should understand those privileges and not install components that might conflict or compromise server operation. For example, one component conflicts with another if both define a privilege with the same name. Component developers can reduce the likelihood of this occurrence by choosing privilege names having a prefix based on the component name. The server maintains the set of registered dynamic privileges internally in memory. Unregistration occurs at server shutdown. Normally, a component that defines dynamic privileges registers them when it is installed, during its initialization sequence. When uninstalled, a component does not unregister its registered dynamic privileges. (This is current practice, not a requirement. That is, components could, but do not, unregister at any time privileges they register.) No warning or error occurs for attempts to register an already registered dynamic privilege. Consider the following sequence of statements:
The first Dynamic privileges apply only at the global level. The server stores information about current assignments of dynamic privileges to user accounts in the
Example: The following statement grants to user
Granted dynamic privileges appear in the output from the For For
The For descriptions of the dynamic privileges provided by MySQL Server and components included in MySQL distributions, see Section 6.2.2, “Privileges Provided by MySQL”. Migrating Accounts from SUPER to Dynamic Privileges In MySQL 8.0, many operations that previously required the When removal of
|