創建數據庫
CREATE DATABASE IF NOT EXISTS mini_shopdefault charset utf8 COLLATE utf8_general_ci;
創建用戶
create user 'xlsf'@'%' identified by 'xlsf';
修改用戶
update mysql.user set host = "%" where user = "xlsf";
分配用戶權限
grant all privileges on mini_shop.* to "xlsf"@'%' ;
