linux - Mysql 创建用户和授权

CREATE USER 'cui'@'%' IDENTIFIED BY 'xxxxxxxxxxxxxxxxxx';
GRANT ALL ON test_db.* TO 'cui'@'%';

REVOKE SELECT ON test_db.* FROM 'cui'@'%';

你可能感兴趣的:(linux - Mysql 创建用户和授权)