-- //创建数据库wiki
create database test666 CHARACTER SET utf8 COLLATE utf8_general_ci;
-- //创建cloud用户,并授予cloud对wiki操作的所有权限,localhost则代表这个用户只能在localhost进行登录
grant all on test666.* to 'test666'@'%' identified by 'test666';
-- //刷新系统权限表
flush privileges;
flush hosts;
mysql数据库独立用户,独立权限
2021/12/5 20:08:22