The example in this article runs on MySQL 5.0 and above.
MySQL The simple format of the command to grant user permissions can be summarized as:
1. grant ordinary data user, query, insert, update, delete all tables in the database Data Rights.
2. Grant database developer creates tables, indexes, views, stored procedures, and functions. . . and other permissions.
grant Permission to create, modify, and delete MySQL data table structures.
grant Permission to operate MySQL views and view view source code.
grant
all
5. MySQL grant permissions can be applied at multiple levels.
1. grant applies to the entire MySQL server:
4. Grant acts on the columns in the table:
5. Grant works on stored procedures and functions:
revoke has similar syntax to grant, just replace the keyword "to" with "from":
The above is the detailed content of Detailed explanation of how to use the MySQL authorization command grant. For more information, please follow other related articles on the PHP Chinese website!