1.建立用戶數據庫
create user '用戶名'@'%' identified by '密碼'; 刷新權限 flush privileges;
2.爲用戶分配全部權限ide
grant all privileges on *.* to '用戶名''@'%' identified by '密碼'; 刷新權限 flush privileges; 第一個'*' 可輸入具體的數據庫名