2015年4月7日 星期二

[JAVA]解決MySql mysql noAccessToProcedureBodies=true 問題

今天早上在寫完相關的MySql Procedure後 部上相關程式 執行後遇到以下類似以下錯誤畫面 java.sql.SQLException: 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. 解決方法可以參考 http://chenzhou123520.iteye.com/blog/1542852 執行相關解決方式後 GRANT SELECT ON mysql.proc TO 'username'@'%'; 問題解決了 哇啊~~~ 超方便