Failed to execute stored procedure from the JDBC code using mysql connection
Posted
by Purushotham
on Stack Overflow
See other posts from Stack Overflow
or by Purushotham
Published on 2010-06-16T11:05:20Z
Indexed on
2010/06/16
11:32 UTC
Read the original article
Hit count: 209
mysql
|stored-procedure
Hi,
I have one database. I executed a stored procedure on it. I wrote some JDBC code to connect to this database. When I am calling this stored procedure from my JDBC code it is throwing SQLException.
One interesting thing I found is that I have one user other than root user. This user has all the privileges to this database where the stored procedure is present.
When I use the root user I am able to call the stored procedure successfully. But with the other user I am getting SQLexception. I am not able to find why it happens like this.
For sure I want this user(other than root) has to call this stored procedure successfully.
Thanks in advance.
© Stack Overflow or respective owner