News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Solar Blog:
Adapter for Master/Slave MySQL Setups
October 03, 2008 @ 14:35:05

On the Solar blog Paul Jones has posted about a new database adapter they included in the latest Solar framework release - one that lets you connect to master/slave MySQL setups.

With Solar, you connect to SQL databases using the Solar_Sql factory class, which returns a Solar_Sql_Adapter class for you. Most developers only need to connect to a single MySQL server. [...] However, when you get into a situation where you need to scale up, you might need a replicated MySQL database setup. In such cases, there is one "master" server that handles reads and writes, and there are one or more "slave" servers that are read-only.

The Solar_Sql_Adapter_MysqlReplicated adapter does all of the switching for you, making it as simple as dropping it in and changing your configuration to point to the master and slave servers (examples included).

4 comments voice your opinion now!
solar framework master slave adapter automatic


blog comments powered by Disqus

Similar Posts

Jared White\'s Blog: Winning the PHP 5 Framework Wars

Andi Gutmans\' Blog: Zend Framework surpassed the .NET Framework!

Phish Tank: Install & Configure Apache+PHP+ZendFramework+OracleDbXe On Windows In Minutes

Atlanta PHP Users Group: April 2006 Meeting - 6th @ 7pm

Blogge: Things You Must Know About CakePHP


Community Events





Don't see your event here?
Let us know!


podcast interview release install community composer framework symfony opinion introduction version package tool laravel language voicesoftheelephpant application series security library

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework