[HyperDB] Anyone using it yet?

Jamie Holly hovercrafter at earthlink.net
Fri Jun 15 00:12:10 GMT 2007


Edit your db-settings.php file, towards the end. What I did (no thrills -
just for replication):

  add_db_server('global', 0, 'lax', 1, 1,  '{master database address:port}',
'{master database address:port}', '{master database name}', '{master
database user}','{master database password}');
  add_db_server('global', 0, 'lax', 1, 0,  '{slave database address:port}',
'{slave database address:port}', '{slave database name}', '{slave database
user}','{slave database password}');

Put the db.php file in /wp-content

db-settings.php goes in the root folder.

In your wp-config.php file, after:

define('ABSPATH', dirname(__FILE__).'/');

add:

require_once(ABSPATH.'db-settings.php');


If you want to see which database was connected to, you can do what I did on
my test servers. Add this line to the footer of your template:

<? echo $wpdb->current_host ?>

Hope that helps!

Jamie Holly
http://www.intoxination.net

> -----Original Message-----
> From: hyperdb-bounces at lists.automattic.com [mailto:hyperdb-
> bounces at lists.automattic.com] On Behalf Of Ulysses Ronquillo
> Sent: Thursday, June 14, 2007 6:47 PM
> To: hyperdb at lists.automattic.com
> Subject: Re: [HyperDB] Anyone using it yet?
> 
> Well, I got the database replication working, but the plugin is another
> story.
> 
> Any detailed instructions? A little lost.
> 
> 
> 
> ----- Original Message ----
> From: Matt Mullenweg <m at mullenweg.com>
> To: hyperdb at lists.automattic.com
> Sent: Thursday, June 7, 2007 8:59:50 AM
> Subject: [HyperDB] Anyone using it yet?
> 
> Just curious. :)
> 
> --
> Matt Mullenweg
>   http://photomatt.net | http://wordpress.org
> http://automattic.com | http://akismet.com
> _______________________________________________
> HyperDB mailing list
> HyperDB at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/hyperdb
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________________________________
> _____________Ready for the edge of your seat?
> Check out tonight's top picks on Yahoo! TV.
> http://tv.yahoo.com/
> _______________________________________________
> HyperDB mailing list
> HyperDB at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/hyperdb



More information about the HyperDB mailing list