You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use php artisan db --read or php artisan db --write to specify which host to use. But it appears there is a bug with that too. It doesn't work if host is an array...
mysql Ver 8.0.27-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
Description:
I have configured separate read and write connections in database config file, like below
And when running the
php artisan db
it cannot find the host and throw exception.Steps To Reproduce:
'read' => [ 'host' => [ env('DB_HOST_SLAVE', '127.0.0.1') ], ], 'write' => [ 'host' => [ env('DB_HOST_MASTER', '127.0.0.1') ], ],
php artisan db
orphp artisan db mysql
The text was updated successfully, but these errors were encountered: