From 782b7ff82756bbf350835fd31f16d7221489b397 Mon Sep 17 00:00:00 2001 From: Oleksii Prozhoha Date: Sun, 22 Apr 2018 14:34:52 +0300 Subject: [PATCH] Described Installation Process --- README.md | 30 +++++++++++++++++++++++++++++- composer.json | 2 +- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ecbd2c4..85c0d2d 100755 --- a/README.md +++ b/README.md @@ -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' => '', + 'dbname' => '', + 'username' => '', + 'password' => '', + '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 + diff --git a/composer.json b/composer.json index 8e2896c..1f3600b 100755 --- a/composer.json +++ b/composer.json @@ -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": [ {