IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 1 and Version 2 of MySqlReplication


Ignore:
Timestamp:
Oct 13, 2010, 3:06:10 PM (16 years ago)
Author:
Serge CHASTEL
Comment:

Fontification

Legend:

Unmodified
Added
Removed
Modified
  • MySqlReplication

    v1 v2  
     1
    12This page describes the replication of a MySql server database.
    23
    34= Objectives =
    4 The database named {{ps1sc}} is present on the host {{neverland}}. We want to replicate it on the host named {{biglefts}}. {{neverland}} will be the master, {{biglefts}} its slave.
     5The database named ''ps1sc'' is present on the host ''neverland''. We want to replicate it on the host named ''biglefts''. ''neverland'' will be the master, ''biglefts'' its slave.
    56
    67= Preliminary =
     
    1920
    2021= Set up the master configuration for replication =
    21 All commands are executed on the master ({{neverland}})
     22All commands are executed on the master (''neverland'')
    2223Documentation is at http://dev.mysql.com/doc/refman/5.1/en/replication-howto-masterbaseconfig.html
    23 * Stop the mysql server: {{sudo service mysql stop}}
    24 * Note: {{ps waux | grep mysqld}} should not show anything (except the grep part maybe)
    25 * Edit the mysql configuration and add (or uncomment+modify) the {{[mysqld]}} section so that it contains:
     24* Stop the mysql server: ''sudo service mysql stop''
     25* Note: ''ps waux | grep mysqld'' should not show anything (except the grep part maybe)
     26* Edit the mysql configuration and add (or uncomment+modify) the ''[mysqld]'' section so that it contains:
    2627{{{
    2728log-bin=/var/log/mysql/mysql-bin.log
     
    3334sync_binlog=1
    3435}}}
    35 * Start the mysql server: {{sudo service mysql start}}
     36* Start the mysql server: ''sudo service mysql start''
    3637
    3738= Set up the slave configuration for replication =
    38 All commands are executed on the slave ({{biglefts}})
     39All commands are executed on the slave (''biglefts'')
    3940Documentation is at http://dev.mysql.com/doc/refman/5.1/en/replication-howto-slavebaseconfig.html
    40 * Stop the mysql server: {{sudo service mysql stop}}
    41 * Note: {{ps waux | grep mysqld}} should not show anything (except the grep part maybe)
    42 * Edit the mysql configuration and add (or uncomment+modify) the {{[mysqld]}} section so that it contains:
     41* Stop the mysql server: ''sudo service mysql stop''
     42* Note: ''ps waux | grep mysqld'' should not show anything (except the grep part maybe)
     43* Edit the mysql configuration and add (or uncomment+modify) the ''[mysqld]'' section so that it contains:
    4344{{{
    4445server-id=2010101302
     
    4849log-bin=/var/log/mysql/mysql-bin.log
    4950}}}
    50 * Start the mysql server: {{sudo service mysql start}}
     51* Start the mysql server: ''sudo service mysql start''
    5152
    5253= Create a User for Replication =