Skip to content

Commit

Permalink
Described Installation Process
Browse files Browse the repository at this point in the history
  • Loading branch information
skynixukraine committed Apr 22, 2018
1 parent 9c68edc commit 782b7ff
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 782b7ff

Please sign in to comment.