Skip to content

Commit

Permalink
Merge pull request #5 in M2E/magento-2---mysql-cluster from readme to…
Browse files Browse the repository at this point in the history
… master

* commit '782b7ff82756bbf350835fd31f16d7221489b397':
  Described Installation Process
  • Loading branch information
skynixukraine committed Apr 22, 2018
2 parents 9c68edc + 782b7ff commit 798aed9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
# skynix Magento 2 MySQL Cluster
## Skynix Magento 2 MySQL Cluster
# Installation Instructions

1. composer require skynix/m2-mysql-cluster
2. add configuration into app/etc/env.php

Section db -> connection -> default

add a new section:

'slave-servers' =>
[
0 =>
[
'host' => '<mysql_slave_server>',
'dbname' => '<mysql_slave_db_name>',
'username' => '<mysql_user_name>',
'password' => '<mysql_user_pass>',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
]
]

Add there as many slave servers as you have.

3. bin/magento deploy:mode:set production

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "skynix/m2-mysql-cluster",
"type": "library",
"license": "OSL-3.0",
"description": "Test",
"description": "Magento 2 CE SQL cluster enabled Magento 2 CE to work with database replication",
"keywords": ["magento2"],
"authors": [
{
Expand Down

0 comments on commit 798aed9

Please sign in to comment.