Mysql创建用户分配权限

mysql创建用户

create user 'user_name'@'allow_host' identified by 'pass_word';

mysql为用户分配权限

grant all privileges on `user_controller_database`.* to 'suer_name'@'allow_host' identified by 'pass_word';

分配完权限刷新权限

flush privileges;

你可能感兴趣的:(Mysql创建用户分配权限)