为一个项目单独配置数据库权限和用户
2019-10-30 本文已影响0人
ljwheyxy
create user pyshopuser identified by 'pyshopuser';
grant all privileges on pyshop.* to 'pyshopuser'@'%';
flush privileges;
create user pyshopuser identified by 'pyshopuser';
grant all privileges on pyshop.* to 'pyshopuser'@'%';
flush privileges;