Hi,
This is a common issue when calling stored procedures from Scriptcase. The timeout in Scriptcase is controlled separately from MySQL/server settings. Here are a few things to check:
-
PHP
max_execution_time – In your Scriptcase project settings or php.ini, increase it (e.g. max_execution_time = 600).
-
PHP
default_socket_timeout – Also in php.ini, set it higher (e.g. default_socket_timeout = 600).
-
Scriptcase connection timeout – In your database connection settings inside Scriptcase, look for a timeout parameter and increase it.
-
Apache
TimeOut directive – If running under Apache, the default is 300 seconds. Increase it in httpd.conf.
-
Consider running async – For very long operations (85M records is a lot!), you might want to trigger the SP via a background job rather than a direct app call.
The key difference is that Navicat runs the query directly on the server, while Scriptcase calls it over a PHP/Apache stack — so all those layers have their own timeouts.
Hope this helps!