문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top