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": [ {