#User Management
- whitelist setting
Username @ 'white list'
white list support way?
wordpress@'10.0.0.% '
WordPress @'% '
wordpress@'10.0.0.200'
WordPress @ 'localhost'
WordPress @ 'DB02'
wordpress@'10.0.0.5% '
wordpress@'10.0.0.0/255.255.254.0'
- Create a user
增: mysql> create user zyc@'43.82.209.%' identified by '123'; 查: mysql> desc mysql.user; mysql> select user ,host ,authentication_string from mysql.user 改: mysql> alter user zyc@'43.82.209.%' identified by '456'; 删: mysql> drop user zyc@'43.82.209.%';
- Authorization
ALL:
the SELECT, INSERT, UPDATE, DELETE, the CREATE, DROP, RELOAD, SHUTDOWN,
the PROCESS, FILE, the REFERENCES, INDEX, the ALTER, SHOW DATABASES, SUPER,
the CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE,
REPLICATION CLIENT, the CREATE VIEW , SHOW VIEW, the CREATE ROUTINE,
the ALTER ROUTINE, the CREATE the uSER, EVENT, TRIGGER, the CREATE TABLESPACE
ALL: all of the above privileges, usually ordinary administrator has
with grant option: super administrators have, to other authorized users function
1 MySQL> Grant All ON WordPress to WordPress @ *. '43 .82.209%. ' IDENTIFIED by ' 123 ' ;
#grant: Authorization command
#all: Permissions
#on: the role of command
# wordpress *: the role of the scope of authority.
##
. * * ---> the whole library full table administrator user
wordpress * ---> wordpress user database application development.
wordpress.t1
##
#to: the role of command2 mysql> grant select ,update,insert,delete on app.* to app@'43.80.209.%' identified by '123';
- Check Authorization
1 mysql> show grants for zyc@'43.82.209.%';
- Recycling Authorization
1 mysql> revoke delete on app.* from zyc@'43.82.209.%';