Using database failovers - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Using database failovers (/showthread.php?tid=75688) |
Using database failovers - jameslittle - 03-05-2020 I'm trying to define a database failover in my .env file, but I'm not sure I've got the syntax for env files. I'm using it like: database.default.failover.hostname = localhost database.default.failover.port = 3306 ... When the main DB fails, I get the whoops message but it never seems to try to connect to the failover. RE: Using database failovers - John_Betong - 03-05-2020 @jameslittle, > When the main DB fails, I get the whoops message Have a look at the documentation for setting the environment to "development" instead of the default "production" modes. Also search how to set log variable threshold and inspect the logs. Also the Kint debugger may be useful. |