Set database connection timeout in CodeIgniter 3 |
We are working with 2 databases, our local database and an external database. But now our external database is down (we're still under development so it's good we came across this issue) and it now tries to connect to the external database for 30 seconds, how can I change the connection timeout of the Database to something like 1 - 2 seconds? I am using Codeigniter with the PDO drivers on my databases. Is there anyone with a clean solution for this problem?
I have also asked this question on stackoverflow, but no luck there, link to it --> http://stackoverflow.com/questions/32616...eigniter-3 |
Messages In This Thread |
Set database connection timeout in CodeIgniter 3 - by Jordy - 09-18-2015, 02:02 AM
RE: Set database connection timeout in CodeIgniter 3 - by mwhitney - 09-18-2015, 08:23 AM
RE: Set database connection timeout in CodeIgniter 3 - by Jordy - 09-18-2015, 08:33 AM
RE: Set database connection timeout in CodeIgniter 3 - by mwhitney - 09-21-2015, 07:32 AM
RE: Set database connection timeout in CodeIgniter 3 - by Jordy - 09-21-2015, 08:29 AM
|