Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
// Laravel read/write split // config/database.php "mysql" => [ "read" => ["host" => ["replica1", "replica2"]], "write" => ["host" => "primary"], "sticky" => true, // same connection for rest of request after write ... ] // ProxySQL routes automatically based on query type // SELECT → replicas, INSERT/UPDATE/DELETE → primary
Result
Open