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

Table of Contents
maxLevel3
printablefalse

Master Server (Primary)

Folgende Schritte sind erforderlich, um einen DATA Server als Master zu konfigurieren.

Als erstes muss ein entsprechendes Konfigurationsmodul erstellt werden. Dies erfolgt mit folgendem Befehl.

ACHTUNG:

  • die server_id sind pro Master Server unterschiedlich 
  • Der Parameter auto_increment_offset ist pro Master Server unterschiedlich


Translations Ignore


Code Block
languagebash
titleConfigure MySQL Master 1
cat <<EOFF > /etc/my.cnf.d/jtel-master.cnf
# Custom MySQL settings for a specific SQL master server
#
# WARNING: This file is specific to the master server

[mysqld]
#
# Replication Options
#

# Specific options for MASTER role
#
server_id                       = 1
binlog_format                   = ROW
expire_logs_days                = 1
max_binlog_size                 = 100M
log_bin                         = binlog
auto_increment_increment        = 2
auto_increment_offset           = 1
log_slave_updates
relay_log                       = mysqld-relay-bin
relay_log_index                 = mysqld-relay-bin.index
relay_log_info_file             = relay-log.info
EOFF



Translations Ignore


Code Block
languagebash
titleConfigure MySQL Master 2
cat <<EOFF > /etc/my.cnf.d/jtel-master.cnf
# Custom MySQL settings for a specific SQL master server
#
# WARNING: This file is specific to the master server

[mysqld]
#
# Replication Options
#

# Specific options for MASTER role
#
server_id                       = 2
binlog_format                   = ROW
expire_logs_days                = 1
max_binlog_size                 = 100M
log_bin                         = binlog
auto_increment_increment        = 2
auto_increment_offset           = 2
log_slave_updates
relay_log                       = mysqld-relay-bin
relay_log_index                 = mysqld-relay-bin.index
relay_log_info_file             = relay-log.info
EOFF




Als nächstes wird ein Benutzer angelegt, mit dem sich die Slave-Server mit dem Master-Server verbinden können - <password> mit dem entsprechenden Passwort ersetzen.

Translations Ignore


Code Block
titleCreate replication user
mysql -u root -p<password> -v -e"CREATE USER 'repl'@'%' IDENTIFIED BY '<password>'"
mysql -u root -p<password> -v -e"GRANT REPLICATION SLAVE ON *.* TO 'repl'@'%'"
mysql -u root -p<password> -v -e"FLUSH PRIVILEGES"



Im Anschluss muss der MySQL-Server neu gestartet werden, damit alle Einstellungen übernommen werden:

Translations Ignore


Code Block
languagebash
titleRestart the MySQL server
service mysqld restart




Slave Server

Folgende Schritte sind erforderlich, um einen DATA-Server als Slave zu konfigurieren. Es handelt sich hierbei um eine unverschlüsselte Replikation. Eine verschlüsselte Replikation kann gemäß https://www.thomas-krenn.com/de/wiki/MySQL_Verbindungen_mit_SSL_verschl%C3%BCsseln umgesetzt werden.

Als erstes muss ein entsprechendes Konfigurationsmodul erstellt werden. Dies erfolgt mit folgendem Befehl.

ACHTUNG:

  • die server_id sind pro Slave Server unterschiedlich, und sind bewusst abseits von 100 gehalten, damit die nicht mit Master-IDs kollidieren.
Translations Ignore


Code Block
languagebash
titleConfigure MySQL Slave 1
cat <<EOFF > /etc/my.cnf.d/jtel-slave.cnf
# Custom MySQL settings for a specific SQL slave server
#
# WARNING: This file is specific to the slave server

[mysqld]
# Specific options for SLAVE role
#
server_id                       = 101
relay_log                       = mysqld-relay-bin
relay_log_index                 = mysqld-relay-bin.index
relay_log_info_file             = relay-log.info
skip-log-bin
EOFF



Translations Ignore


Code Block
languagebash
titleConfigure MySQL Slave 2
cat <<EOFF > /etc/my.cnf.d/jtel-slave.cnf
# Custom MySQL settings for a specific SQL slave server
#
# WARNING: This file is specific to the slave server

[mysqld]
# Specific options for SLAVE role
#
server_id                       = 102
relay_log                       = mysqld-relay-bin
relay_log_index                 = mysqld-relay-bin.index
relay_log_info_file             = relay-log.info
skip-log-bin
EOFF



Im Anschluss muss der MySQL-Server neu gestartet werden, damit alle Einstellungen übernommen werden:

Translations Ignore


Code Block
languagebash
titleRestart the MySQL server
service mysqld restart





Sv translation
languagede

Table of Contents
maxLevel3
printablefalse

Master Server (Primary)

Folgende Schritte sind erforderlich, um einen DATA Server als Master zu konfigurieren.

Als erstes muss ein entsprechendes Konfigurationsmodul erstellt werden. Dies erfolgt mit folgendem Befehl.

ACHTUNG:

  • die server_id sind pro Master Server unterschiedlich 
  • Der Parameter auto_increment_offset ist pro Master Server unterschiedlich


Translations Ignore


Code Block
languagebash
titleConfigure MySQL Master 1
cat <<EOFF > /etc/my.cnf.d/jtel-master.cnf
# Custom MySQL settings for a specific SQL master server
#
# WARNING: This file is specific to the master server

[mysqld]
#
# Replication Options
#

# Specific options for MASTER role
#
server_id                       = 1
binlog_format                   = ROW
expire_logs_days                = 1
max_binlog_size                 = 100M
log_bin                         = binlog
auto_increment_increment        = 2
auto_increment_offset           = 1
log_slave_updates
relay_log                       = mysqld-relay-bin
relay_log_index                 = mysqld-relay-bin.index
relay_log_info_file             = relay-log.info
EOFF



Translations Ignore


Code Block
languagebash
titleConfigure MySQL Master 2
cat <<EOFF > /etc/my.cnf.d/jtel-master.cnf
# Custom MySQL settings for a specific SQL master server
#
# WARNING: This file is specific to the master server

[mysqld]
#
# Replication Options
#

# Specific options for MASTER role
#
server_id                       = 2
binlog_format                   = ROW
expire_logs_days                = 1
max_binlog_size                 = 100M
log_bin                         = binlog
auto_increment_increment        = 2
auto_increment_offset           = 2
log_slave_updates
relay_log                       = mysqld-relay-bin
relay_log_index                 = mysqld-relay-bin.index
relay_log_info_file             = relay-log.info
EOFF




Als nächstes wird ein Benutzer angelegt, mit dem sich die Slave-Server mit dem Master-Server verbinden können - <password> mit dem entsprechenden Passwort ersetzen.

Translations Ignore


Code Block
titleCreate replication user
mysql -u root -p<password> -v -e"CREATE USER 'repl'@'%' IDENTIFIED BY '<password>'"
mysql -u root -p<password> -v -e"GRANT REPLICATION SLAVE ON *.* TO 'repl'@'%'"
mysql -u root -p<password> -v -e"FLUSH PRIVILEGES"



Im Anschluss muss der MySQL-Server neu gestartet werden, damit alle Einstellungen übernommen werden:

Translations Ignore


Code Block
languagebash
titleRestart the MySQL server
service mysqld restart




Slave Server

Folgende Schritte sind erforderlich, um einen DATA-Server als Slave zu konfigurieren. Es handelt sich hierbei um eine unverschlüsselte Replikation. Eine verschlüsselte Replikation kann gemäß https://www.thomas-krenn.com/de/wiki/MySQL_Verbindungen_mit_SSL_verschl%C3%BCsseln umgesetzt werden.

Als erstes muss ein entsprechendes Konfigurationsmodul erstellt werden. Dies erfolgt mit folgendem Befehl.

ACHTUNG:

  • die server_id sind pro Slave Server unterschiedlich, und sind bewusst abseits von 100 gehalten, damit die nicht mit Master-IDs kollidieren.
Translations Ignore


Code Block
languagebash
titleConfigure MySQL Slave 1
cat <<EOFF > /etc/my.cnf.d/jtel-slave.cnf
# Custom MySQL settings for a specific SQL slave server
#
# WARNING: This file is specific to the slave server

[mysqld]
# Specific options for SLAVE role
#
server_id                       = 101
relay_log                       = mysqld-relay-bin
relay_log_index                 = mysqld-relay-bin.index
relay_log_info_file             = relay-log.info
skip-log-bin
EOFF



Translations Ignore


Code Block
languagebash
titleConfigure MySQL Slave 2
cat <<EOFF > /etc/my.cnf.d/jtel-slave.cnf
# Custom MySQL settings for a specific SQL slave server
#
# WARNING: This file is specific to the slave server

[mysqld]
# Specific options for SLAVE role
#
server_id                       = 102
relay_log                       = mysqld-relay-bin
relay_log_index                 = mysqld-relay-bin.index
relay_log_info_file             = relay-log.info
skip-log-bin
EOFF



Im Anschluss muss der MySQL-Server neu gestartet werden, damit alle Einstellungen übernommen werden:

Translations Ignore


Code Block
languagebash
titleRestart the MySQL server
service mysqld restart





Sv translation
languagefr

Table of Contents
maxLevel3
printablefalse

Serveur maître (primaire)

Les étapes suivantes sont nécessaires pour configurer un serveur DATA en tant que maître.

Tout d'abord, un module de configuration correspondant doit être créé. Cela se fait avec la commande suivante.

ATTENTION :

  • les server_id sont différents par serveur maître 
  • Le paramètre auto_increment_offset est différent par serveur maître


Translations Ignore


Code Block
languagebash
titleConfigurer MySQL Master 1
cat <<EOFF > /etc/mon.cnf.d/jtel-master.cnf # Paramètres MySQL personnalisés pour un serveur SQL maître spécifique # # ATTENTION : Ce fichier est spécifique au serveur maître [mysqld] # # Options de réplication # # Options spécifiques pour le rôle MASTER # server_id = 1 binlog_format = ROW expire_logs_days = 1 max_binlog_size = 100M log_bin = binlog auto_increment_increment = 2 auto_increment_offset = 1 log_sldq-relay-mysupdates -bin relay_log_index = mysqld-relay-bin.index relay_log_info_file = relay-log.info EOFF



Translations Ignore


Code Block
languagebash
titleConfigurer MySQL Master 2
cat <<EOFF > /etc/mon.cnf.d/jtel-master.cnf # Paramètres MySQL personnalisés pour un serveur SQL maître spécifique # # ATTENTION : Ce fichier est spécifique au serveur maître [mysqld] # # Options de réplication # # Options spécifiques pour le rôle MASTER # server_id = 2 binlog_format = ROW expire_logs_days = 1 max_binlog_size = 100M log_bin = binlog auto_increment_increment = 2 auto_increment_offset = 2 log_sldq-relay-mysupdates -bin relay_log_index = mysqld-relay-bin.index relay_log_info_file = relay-log.info EOFF




Ensuite, créez un utilisateur que les serveurs esclaves peuvent utiliser pour se connecter au serveur maître - remplacez <mot de passe> par le mot de passe approprié.

Translations Ignore


Code Block
titleCréer un utilisateur de réplication
mysql -u root -p<password> -v -e"CREATE USER 'repl'@'%' IDENTIFIED BY '<password>'" mysql -u root -p<password> -v -e"GRANT REPLICATION SLAVE ON *.* TO 'repl'@'%'" mysql -u root -p<password> -v -e"FLUSH PRIVILEGES"



Ensuite, le serveur MySQL doit être redémarré afin que tous les paramètres soient appliqués :

Translations Ignore


Code Block
languagebash
titleRedémarrer le serveur MySQL
service mysqld restart




Slave Server

Les étapes suivantes sont nécessaires pour configurer un serveur DONNÉES en tant qu'esclave. Il s'agit d'une réplique non cryptée. La réplication chiffrée peut être effectuée selon https://www.thomas-krenn.com/de/wiki/MySQL_Verbindungen_mit_SSL_verschl%C3%BCsseln être mis en œuvre.

Tout d'abord, un module de configuration correspondant doit être créé. Cela se fait avec la commande suivante.

ATTENTION :

  • les server_id sont différents par serveur esclave, et sont délibérément maintenus à l'écart de 100 afin de ne pas entrer en collision avec les ID des maîtres.
Translations Ignore


Code Block
languagebash
titleConfigurer MySQL Esclave 1
cat <<EOFF > /etc/mon.cnf.d/jtel-slave.cnf # Paramètres MySQL personnalisés pour un serveur SQL esclave spécifique # # ATTENTION : Ce fichier est spécifique au serveur esclave [mysqld] # Options spécifiques pour le rôle SLAVE # server_id = 101 relay_log = mysqld-relay-bin relay_log_index = mysqld-relay-bin.index relay_log_info_file = relay-log.info skip-log-bin EOFF



Translations Ignore


Code Block
languagebash
titleConfigurer MySQL Esclave 2
cat <<EOFF > /etc/mon.cnf.d/jtel-slave.cnf # Paramètres MySQL personnalisés pour un serveur SQL esclave spécifique # # ATTENTION : Ce fichier est spécifique au serveur esclave [mysqld] # Options spécifiques pour le rôle SLAVE # server_id = 102 relay_log = mysqld-relay-bin relay_log_index = mysqld-relay-bin.index relay_log_info_file = relay-log.info skip-log-bin EOFF



Ensuite, le serveur MySQL doit être redémarré afin que tous les paramètres soient appliqués :

Translations Ignore


Code Block
languagebash
titleRedémarrer le serveur MySQL
service mysqld restart