Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Content imported from a Scroll Translations translation file.
Sv translation
languageen

No Data Loaded in Master

Note

This method only works if the database is empty. If the database is not empty, then replication should be restored as described below.


Bisher wurden keine Daten auf den Master eingespielt (Master ist leer)

Dies funktioniert nur dann, wenn überhaupt keine Daten in den Datenbanken eingespielt wurden. 

Die Datenbanken sind also komplett leer (bis auf die Konfiguration bisher).

In diesen Fall kann die Replikation einfach wie folgt initialisiert werden:

Translations Ignore


MySQL Commands for Replication Initialisation
Code Block
title
# ToOn the respective master (also for master-master)
mysql> SHOW MASTER STATUS\G

# ToOn the slave
# HereUse adjustthe <acd-dbm> as well asvalues for <Name Logfile> and <Position LogFile> from the output above:
mysql> CHANGE MASTER TO MASTER_HOST='<acd-dbm>',MASTER_USER='repl',MASTER_PASSWORD='<passwort>',MASTER_LOG_FILE='<Name LogFile>', MASTER_LOG_POS=<Position LogFile>;

# Start On the slave - start the Slave
mysql> START SLAVE;

# Check On the slave - check status
mysql> SHOW SLAVE STATUS\G

Daten wurden eingespielt (Master ist nicht leer)

Je nach dem welche Architektur installiert wird, wird die Replikation wie auf den verlinkten Seiten eingerichtet:

Hinweis:

  • Die Replikation kann auch wiederhergestellt werden, als ob es vorher gelaufen wäre - es gibt keine Notwendikeit zwischen einer Erstinstallation oder Wiederherstellung zu unterscheiden.

MySQL Master Slave Replication wiederherstellen


Simple Master Slave

For a simple master slave installation, the above commands will be input only once.

Master-Master Replication

For Master-Master replication with two additional slaves, the replication is setup as follows:

WhatMasterSlave
Replicate the first master to the second master.acd-dbm1acd-dbm2
Replicate the second master to the first master.acd-dbm2acd-dbm1
Replicate the first master to the first slave. acd-dbm1acd-dbs1
Replicate the second master to the second slave. acd-dbm2acd-dbs2

Master is not Empty

If the master is not empty, then use one of the following pages to reconstruct replication:

Restore MySQL Master Slave Replication

Restore MySQL Master-Master ReplicationMySQL Master-Master Replikation wiederherstellen

Sv translation
languagede

Status
colourRed
titleThis page is only available in English

Sv translation
languagefr

Aucune donnée chargée dans le Maître

Note

Cette méthode ne fonctionne que si la base de données est vide. Si la base de données n'est pas vide, la réplication doit être restaurée comme décrit ci-dessous.


Bisher wurden keine Daten auf den Master eingespielt (Master ist leer)

Dies funktioniert nur dann, wenn überhaupt keine Daten in den Datenbanken eingespielt wurden. 

Die Datenbanken sind also komplett leer (bis auf die Konfiguration bisher).

In diesen Fall kann die Replikation einfach wie folgt initialisiert werden:

Translations Ignore


title
Code Block
MySQL Commands for Replication Initialisation
# ToSur the respective master (also for master-master)
le maître mysql> SHOW MASTER STATUS\G

 # ToSur thel'esclave slave
# HereUtilisez adjustles <acd-dbm> as well asvaleurs pour <Name Logfile> andet <Position LogFile>:
 de la sortie ci-dessus: mysql> CHANGE MASTER TO MASTER_HOST = '<acd-dbm>', MASTER_USER = 'repl', MASTER_PASSWORD = '<passwort>', MASTER_LOG_FILE = '<Name LogFile>', MASTER_LOG_POS = <Position LogFile>;

 # Start Slave
Sur l'esclave - démarrer l'esclave mysql> START SLAVE;

 # Check status
Sur l'esclave - vérifier l'état mysql> SHOW SLAVE STATUS\G

Daten wurden eingespielt (Master ist nicht leer)

Je nach dem welche Architektur installiert wird, wird die Replikation wie auf den verlinkten Seiten eingerichtet:

Hinweis:

  • Die Replikation kann auch wiederhergestellt werden, als ob es vorher gelaufen wäre - es gibt keine Notwendikeit zwischen einer Erstinstallation oder Wiederherstellung zu unterscheiden.

MySQL Master Slave Replication wiederherstellen


Maître esclave simple

Pour une simple installation maître-esclave, les commandes ci-dessus ne seront saisies qu'une seule fois.

Réplication Maître-Maître

Pour la réplication maître-maître avec deux esclaves supplémentaires, la réplication est configurée comme suit :

QuoiMaîtreEsclave
Reproduisez le premier maître au second maître.acd-dbm1acd-dbm2
Reproduisez le deuxième maître au premier maître.acd-dbm2acd-dbm1
Reproduisez le premier maître au premier esclave. acd-dbm1acd-dbs1
Reproduisez le deuxième maître au deuxième esclave. acd-dbm2acd-dbs2

Le maître n'est pas vide

Si le master n'est pas vide, utilisez l'une des pages suivantes pour reconstruire la réplique :

Restore MySQL Master Slave Replication

Restore MySQL Master-Master Replication

MySQL Master-Master Replikation wiederherstellen