JDBC连接MySql不需要再配置noAccessToProcedureBodies
2014-04-22 15:10
399 查看
针对以下错误:
"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."
不需要再配置noAccessToProcedureBodies=true了,更好的解决办法是:为连接MySql的这个数据库用户分配“获取存储过程元数据(MetaData)”的权限:
grant Select on mysql.proc to 'user'@%
"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."
不需要再配置noAccessToProcedureBodies=true了,更好的解决办法是:为连接MySql的这个数据库用户分配“获取存储过程元数据(MetaData)”的权限:
grant Select on mysql.proc to 'user'@%
相关文章推荐
- JDBC连接mysql提示noAccessToProcedureBodies=true
- JDBC连接执行 MySQL 存储过程报权限错误:User does not have access to metadata required to determine stored procedure parameter types. If rights can not be granted,
- JDBC连接执行 MySQL 存储过程报权限错误:User does not have access to metadata required to determine stored procedur
- JDBC连接执行 MySQL 存储过程报权限错误:User does not have access to metadata required to determine stored procedur
- 低权用户调用高权用户创建的存储过程出错:noAccessToProcedureBodies
- JDBC学习笔记----环境配置及连接MySQL
- ubuntu 系统解决mysql连接问题(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO))
- Weka连接数据库出现No suitable driver found for jdbc:mysql://localhost/dbname
- mysql启动安全模式,以及连接时报错“Access denied for user ''@'localhost' to database 'mysql' ”
- Sqoop-1.4.6配置连接mysql提示ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server
- JMeter JDBC mysql连接配置
- RED5与MYSQL配置问题:No Suitable Driver Found For Jdbc
- jdbc连接mysql(配置在tomcat6.5中)
- jdbc mysql和sql server 建立连接代码 / tomcat+jdbc会出现的问题No suitable driver found for问题,
- 解决mysql连接异常—-com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception
- weka连接mysql错误:no suitable driver found for jdbc
- Weka连接数据库不成功:unable to find a suitable driver for jdbc:mysql://localhost/programmableweb
- java连接mysql :No Suitable Driver Found For Jdbc 解决方法
- 关于mysql-connector-java×××.jar(这是mysql连接jdbc驱动的一个包)缺失造成Unable to load driver.
- javaweb JDBC 数据库连接mysql 配置代码 (直接可用)