mysql创建表空间和用户

创建表空间名

create database 空间名default character set utf8 collate utf8_bin;

创建用户
create user 用户名 identified by '密码';

给用户赋权
grant all on 空间名.* to '用户名'@'%' identified by '密码';
grant select,insert,update,delete,create,drop on vtdc.employee to 用户名 identified by '密码';

猜你喜欢

转载自www.cnblogs.com/jaxlove-it/p/9718566.html