創建表空間名
create database 空間名 default character set utf8 collate utf8_bin;
創建用戶
create user 用戶名 identified with mysql_native_password by '密碼';
給用戶賦權(上面設置了用戶密碼,則賦權時不需要再設置密碼)
grant all on 空間名.* to '用戶名'@'%' identified with mysql_native_password by '密碼';
grant select,insert,update,delete,create,drop on vtdc.employee to 用戶名 identified with mysql_native_password by '密碼';