mysql_connect c installation timeout

Using mysql and php 5.3

The config-mysql written

But for one of the scripts requires that this value was much larger. Is it possible to set it when calling mysql_connect from php.
As another option consider mysql_pconnect, but it is unclear how to close the session after the script completes.
October 8th 19 at 00:37
1 answer
October 8th 19 at 00:39
ini_set('mysql.connect_timeout', 100);
ini_set('default_socket_timeout', 300);
- Tyshawn11 commented on October 8th 19 at 00:42
Thank you, what you need:) - Gina50 commented on October 8th 19 at 00:45

Find more questions by tags MySQLPHP