Question

I'm using DBVisualizer with against my shared hosting database.

I'm not able to see the actual SP code, if I log from a different IP address, than the one from what I have created the SPs.

Any ideas? I was not able to find any option in CPanel that might change this behavior.

Thanks

Was it helpful?

Solution

What's the "DEFINER" of the Stored Procedure? Your user account might not have permissions from the second IP address. If you don't have the "SUPER" privilege, you can't specify any other value for "DEFINER" than your current user account, which if you're logging in from another IP address there's no guarantee that it's using the same account.

So try granting more permissions to the Stored Procedure.

Additionally, you might want to see the "SQL SECURITY INVOKER" option for MySQL. http://dev.mysql.com/doc/refman/5.0/en/stored-programs-security.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top