[wp-trac] [WordPress Trac] #22853: Hyperdb redirects to wp-admin/install.php with no read servers up

WordPress Trac noreply at wordpress.org
Thu Jan 10 13:08:22 UTC 2013


#22853: Hyperdb redirects to wp-admin/install.php with no read servers up
--------------------------+------------------------------
 Reporter:  archon810     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:  3.4.2
 Severity:  major         |  Resolution:  wontfix
 Keywords:                |
--------------------------+------------------------------
Changes (by vnsavage):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Hi,

 Thanks for the report. In general you can use the plugins trac:
 http://plugins.trac.wordpress.org/ which would probably get you an answer
 faster.

 HyperDB is meant to be as flexible as possible, allowing the usage of both
 multiple database servers per site and multiple database servers per
 table. In certain cases, the inability to connect to a certain table might
 be acceptable and could be handled in the code. For example, if we have a
 logging table that is on a separate dataset, for some users might not be
 acceptable to kill the whole site if the database servers for this dataset
 die.

 The solution we have added for this case, which still keeps HyperDB
 flexible is a callback called "db_connection_error" which is called when
 HyperDB couldn't connect to a certain dataset. If you want to replicate
 the behavior without HyperDB and get the "Error establishing a database
 connection" when you can't connect to servers for a dataset, you can use
 the following code in db-config.php:


 {{{
 function wpdb_connection_error( $host, $port, $op, $tbl, $ds, $dbhname,
 $wpdb ) {
         dead_db();
 }
 $wpdb->add_callback( 'wpdb_connection_error', 'db_connection_error' );
 }}}

 Closing the ticket as "wontfix".

 --
 Iliya Polihronov

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22853#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list