[SQL] select StatusByProcessInstanceId(1)
业务需要数据库自定义了一个函数,调用时发现报错如下,应该是权限不足
[Err] 1370 - execute command denied to user 'root'@'%' for routine 'workflow.StatusByProcessInstanceId'
于是去修改权限
[SQL] grant all privileges on . to 'root'@'%'
修改失败,并报错
[Err] 1045 - Access denied for user 'root'@'%' (using password: YES)
如何解决呢