mysql創(chuàng)建用戶
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;
create user 'user_name'@'allow_host' identified by 'pass_word';
grant all privileges on `user_controller_database`.* to 'suer_name'@'allow_host' identified by 'pass_word';
flush privileges;