【Mysql】MySQL 使用者執行儲存過程的許可權
阿新 • • 發佈:2019-01-09
問題
執行儲存過程報錯:
原因
查詢資料:
1305錯誤,由於當前使用者沒用許可權,對使用者進行授權後可以執行。
解決
alter routine---修改與刪除儲存過程/函式
create routine--建立儲存過程/函式
execute--呼叫儲存過程/函式
其他
許可權 | 說明 |
all | |
alter | |
alter routine | 使用alter procedure 和drop procedure |
create | |
create routine | 使用create procedure |
create temporary tables | 使用create temporary table |
create user | |
create view | |
delete | |
drop | |
execute | 使用call和儲存過程 |
file | 使用select into outfile 和load data infile |
grant option | 可以使用grant和revoke |
index | 可以使用create index 和drop index |
insert | |
lock tables | 鎖表 |
process | 使用show full processlist |
reload | 使用flush |
replication client | 伺服器位置訪問 |
replocation slave | 由複製從屬使用 |
select | |
show databases | |
show view |
shutdown | 使用mysqladmin shutdown 來關閉mysql |
super | |
update | |
usage | 無訪問許可權 |