forked from onlinebizsoft-magento2/Magento-2---MySQL-Cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 in M2E/magento-2---mysql-cluster from readme to…
… master * commit '782b7ff82756bbf350835fd31f16d7221489b397': Described Installation Process
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters