ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,656
- Points
- 823
Reputation:
Hello, from these posts:
Read more
Continue reading...
XF2 features a new "ReplicationAdapter" which allows separate read and write connections to be made.
You can see a typical example of configuration below:
PHP:
Click to expand...Code:$config['db']['adapterClass'] = 'XF\Db\Mysqli\ReplicationAdapter'; $config['db']['write'] = [ 'host' => '192.168.10.1', // ... username, password, dbname etc. ]; $config['db']['read'] = [ 'host' => '192.168.10.2', // ... username, password, dbname etc. ];
We only expose a single one (though...
Click to expand...
Read more
Continue reading...