David Smart - 09 March 2011 05:32 AM
Did you ever get this issue solved?
I’m currently experiencing the same problem
Hi David,
Yes. I did get this working after searching this forum a bit. I’ll show you my config. I have reverted since then though because we found weird behaviors with it. For example, when searching the store, the first search would fail. But if you clicked search again, it would work. Unfortunately, I didn’t see that much of a performance increase using the master/slave setup.
1. Disable Cache Managment
2. Update <magento_install_dir>/app/etc/local.xml
<default_setup>
<connection>
<host><![CDATA[192.168.1.100]]></host>
<username><![CDATA[magento_user]]></username>
<password><![CDATA[magento_pass]]></password>
<dbname><![CDATA[magento]]></dbname>
<active>1</active>
</connection>
</default_setup>
<default_read>
<connection>
<use/>
<host><![CDATA[192.168.1.101]]></host>
<username><![CDATA[magento_user]]></username>
<password><![CDATA[magento_pass]]></password>
<dbname><![CDATA[magento]]></dbname>
<type>pdo_mysql</type>
<model>mysql4</model>
<initStatements>SET NAMES utf8</initStatements>
<active>1</active>
</connection>
</default_read>
Just replace host, username, password, and dbname.
3. Enable Cache Management.
Hope that helps.
Keith
|