mysql user set/cancel permissions

 

 

#Setting permissions
grant select,insert,update,delete,create,drop,alter
on db_student.user_htsb_auth_log to 'user'@'%';
flush privileges;

# cancel permission
REVOKE SELECT,INSERT,UPDATE ON db_nono.campus_relation from market@'%';
flush PRIVILEGES;

 

in:

db_student is the database name

 

user_htsb_auth_log is the table name

 

user represents an authorized user

 

% stands for any IP address.

 

Reference link 1

Reference link 2

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326677406&siteId=291194637