M
M
mihavxc2012-04-08 23:20:13
PHP
mihavxc, 2012-04-08 23:20:13

mysql_connect with timeout setting

I use mysql and php 5.3 Mysql

config says

wait_timeout=20
timeout_connect=20
But one of the scripts requires this value to be much larger. Is it possible to set it when calling mysql_connect from php.
As another option, I consider mysql_pconnect, but it is not yet clear how to close the session after the script ends.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hint, 2012-04-08
@Hint

ini_set('mysql.connect_timeout', 100);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question