mysql> grant all privileges on *.* to 'liaosp'@'%' identified by 'liaosp123456' with grant option;
all privileges: Indicates that all privileges are granted to the user. You can also specify specific permissions, such as: SELECT, CREATE, DROP, etc.
on: Indicates which databases and tables these permissions are valid for. Format: database name.table name, where writing "*" means all databases and all tables. If I want to specify to apply permissions to the user table of the test library, I can write: test.user
to: which user to grant the permission to. Format: "username"@"login IP or domain name". % means there is no limit, you can log in from any host.
For example : "liaosp"@"192.168.0.%", indicating that the user liaosp can only log in in the 192.168.0 IP segment
identified by: the login password of the specified user
with grant option: Indicates that the user is allowed to grant his own permissions to other users