我在打开我的旧网站时遇到了一些问题。我的dataTable显示:
DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.
之后,我尝试调试我的脚本,发现mysql中出现了错误:
Error occuered during query execution:
(<small>SELECT SQL_CALC_FOUND_ROWS ID,name,remark,avrusepmonth
, CONCAT('<input type=''checkbox''id=''cb' , ID ,''' name=''check[]''
value=''',ID,''' >','<label class=''lbcb'' for=''cb',
ID,'''><=update=</label>') as checkb
,monthavrage(ID,12) as latestavr , moq, leadtime
FROM test_media WHERE nowuse=1 and monthavrage(ID,12) > 0 ORDER BY name
desc, ID
LIMIT 0, 10</small>):
execute command denied to user 'jeinqa'@'localhost' for routine 'TestMediaControl.monthavrage'
然后我尝试在谷歌上搜索执行命令被拒绝用户'jeinqa'@'localhost'对于例程'TestMediaControl.monthavrage'
,有些网站说我必须做一些GRANT
:
GRANT EXECUTE ON PROCEDURE TestMediaControl.monthavrage TO 'jeinqa'@'localhost'
但我得到了:
#1370 - execute command denied to user 'jeinqa'@'localhost' for routine 'TestMediaControl.monthavrage'
你能告诉我应该怎么做来解决这个问题吗?