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
As Laravel is supporting define configuration about read-write servers for MySQL. I want to ask how can we do it with our package. I read the docs but you just say config many hosts but not primary.
Let's say I have 1 master and 2 slaves:
The master is being used for write data only, if this master dies, one slave will become master for write data.
Another slave will allow read data only.
Can we do it on configuration? If not then anyone has the solutions for this problem?
This discussion was converted from issue #2202 on February 20, 2021 04:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As Laravel is supporting define configuration about read-write servers for MySQL.
I want to ask how can we do it with our package. I read the docs but you just say config many hosts but not primary.
Let's say I have 1 master and 2 slaves:
Can we do it on configuration? If not then anyone has the solutions for this problem?
Beta Was this translation helpful? Give feedback.
All reactions