See CONTRIBUTING.md.
-
Download this ZIP and paste in your root folder.
-
Add a new connection in your file
app/etc/env.php
called readonly and readonly_setup, like the example env.php file below.
'db' =>
array (
'table_prefix' => '',
'connection' =>
array (
'default' =>
array (
'host' => 'default_writer',
'dbname' => 'db_name',
'username' => 'user_name',
'password' => 'yourpassword',
'active' => '1',
),
'readonly' =>
array (
'host' => 'reader_host',
'dbname' => 'db_name',
'username' => 'user_name',
'password' => 'yourpassword',
'active' => '1',
),
),
),
- Run these commands in your terminal:
bin/magento module:enable MageMojo_SplitDb
bin/magento setup:upgrade