Welcome Guest, Not a member yet? Register   Sign In
Using database failovers
#1

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.
Designer, developer and Diet Dr. Pepper addict. Messing up PHP since <?= $when['year';] ?>
Reply
#2

@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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB