WordPress.org

Ready to get started?Download WordPress

Forums

HyperDB
[resolved] how install? is not cleared (6 posts)

  1. ramonjosegn
    Member
    Posted 1 year ago #

    Hello dear, I do not understand how to install, you could post a video tutorial or similar? thanks

    http://wordpress.org/extend/plugins/hyperdb/

  2. Alexandru Vornicescu
    Member
    Posted 1 year ago #

  3. ramonjosegn
    Member
    Posted 1 year ago #

    I do not know if it's because I do not speak English, but do not really understand anything he says here, is a video explaining it would be too much to ask? thanks

  4. stafford.ritchie
    Member
    Posted 11 months ago #

    wget http://svn.wp-plugins.org/hyperdb/trunk/db-config.php
    wget http://svn.wp-plugins.org/hyperdb/trunk/db.php

    vi /var/www/wordpress/wp-config.php:

    find

    /** MySQL hostname */
    define('DB_HOST', '<Your Database Host Name>');

    add beneath it, using the read replica endpoint:

    define('DB_HOST_READ_REPLICA', '<Your Database Read Replica Host Name>');

    vi /var/www/db-config.php:

    find

    $wpdb->add_database(array(
            'host'     => DB_HOST,     // If port is other than 3306, use host:port.
            'user'     => DB_USER,
            'password' => DB_PASSWORD,
            'name'     => DB_NAME,
            'write'    => 0,
            'read'     => 1,
            'dataset'  => 'global',
            'timeout'  => 0.2,
    ));

    and change it to include

    'host'     => DB_HOST_READ_REPLICA,     // If port is other than 3306, use host:port.
    mv db-config.php /var/www/wordpress/
    mv db.php /var/www/wordpress/wp-content/
  5. ramonjosegn
    Member
    Posted 11 months ago #

    Thanks for explanation

  6. stafford.ritchie
    Member
    Posted 11 months ago #

    np

    Make sure to secure db.php before installing plugins:

    chmod a-w /var/www/wordpress/wp-content/db.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic