Mutiple MySql read/write credentials #46782
Unanswered
MrTheSoulz
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Your write config options should be string and not array with one item in it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, im trying to do some wierd setup where i want to write to 2 separate databases and read from local.
According to: https://laravel.com/docs/9.x/database#read-and-write-connections this should be possível but i seem unable to find docs on how to deal with different credentials.
Has someone delt with this before and can share some light?
Heres what i tried:
This results in a error:
[object] (ErrorException(code: 0): Array to string conversion at PATH/vendor/Laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:153)
Beta Was this translation helpful? Give feedback.
All reactions