mysql爲其餘用戶刷新權限

grant all privileges on dbname.* to username@'userhost' identified by "userpassword";
flush privileges;
all privileges是全部權限,也可設置爲分類,包含如下分類:select, insert, update, delete, create, drop,index, alter, grant, references, reload,shutdown, process, file
userhost不指定IP時可用%
執行完成以後不要忘記執行flush privileges;刷新權限

容許執行存儲過程須要執行以下命令:
grant select on mysql.proc to username;
相關文章
相關標籤/搜索