mysql:使用存储过程报错
User does not have access to metadata required to determine stored procedure parameter types. If rights can not be granted, configure connection with “noAccessToProcedureBodies=true” to have driver generate parameters that represent INOUT strings irregardless of actual parameter types.
需要授予用户权限:
GRANT SELECT ON mysql.proc TO ‘dock’@’%’;
GRANT EXECUTE ON db_dock.* TO ‘dock’@’%’;
FLUSH PRIVILEGES;
本文介绍了解决MySQL中因用户权限不足导致无法正确访问存储过程的问题。通过授予用户对mysql.proc表的SELECT权限及对特定数据库下所有存储过程的EXECUTE权限,可以确保用户能够正常调用存储过程。
393

被折叠的 条评论
为什么被折叠?



