Installation MySQL Replikationsserver 5.6.12



Ähnliche Dokumente
MySQL Cluster und MySQL Proxy

MySQL Replikation Neue Features in 5.5 und 5.6

MySQL Replikation. Erkan Yanar linsenraum.de linsenraum.de

MySQL 5.1. Kristian Köhntopp

MySQL Replikation und GTID

FromDual bietet neutral und unabhängig:

Java Application 1 Java Application 2. JDBC DriverManager. JDBC-ODBC Br idge. ODBC Driver Manager. Dr iver C. Dr iver D.

Übung PL/SQL Trigger Lösungen

MySQL Replikation für Einsteiger

Die Datenmanipulationssprache SQL

Datenbanken SQL Einführung Datenbank in MySQL einrichten mit PhpMyAdmin

PostgreSQL in großen Installationen

MySQL: Einfaches Rechnen.

Schnellübersichten. SQL Grundlagen und Datenbankdesign

PostgreSQL unter Debian Linux

MySQL Replikation für Einsteiger

Word-CRM-Upload-Button. User manual

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

Übersicht der wichtigsten MySQL-Befehle

Whitepaper. Produkt: combit Relationship Manager. Datensatzhistorie mit dem SQL Server 2000 und combit GmbH Untere Laube Konstanz

SQL und MySQL. Kristian Köhntopp

DB2 SQL, der Systemkatalog & Aktive Datenbanken

MySQL: Einfache Subqueries.

MySQL 101 Wie man einen MySQL-Server am besten absichert

7. Datenbank-Zugriff. Vorlesung und Übung Dr. Peter Pfahler Institut für Informatik Universität Paderborn. Zum Beispiel aus PHP-Skripten: Client 7-2

Übungsblatt 8- Lösungsvorschlag

Dipl. Inf. Eric Winter. PostgreSQLals HugeData Storage Ein Erfahrungsbericht

sm-client Projekt Aktualisierungsinstruktionen von R2.x auf R3.0 Finale Version SSK / BSV eahv/iv

MySQL Replication: Eine Einführung

Ein reales Testumfeld bereitstellen - basierend auf einer Produktionsdatenbank (ohne eine neue Kopie zu erstellen)

MySQL, phpmyadmin & SQL. Kurzübersicht

MySQL: GROUP BY.

Anwendungsentwicklung Datenbanken SQL. Stefan Goebel

Beispiel 1: Filmdatenbank

vcdm im Wandel Vorstellung des neuen User Interfaces und Austausch zur Funktionalität V

Titelbild1 ANSYS. Customer Portal LogIn

Dipl. Inf. Dipl. Math. Y. Orkunoglu Datum:

PHP und MySQL. Integration von MySQL in PHP. Zellescher Weg 12 Willers-Bau A109 Tel Michael Kluge (michael.kluge@tu-dresden.

Datenbanken erstellen Liste von Datenbanken anzeigen Datenbanken löschen. MySQL 4, 5. Kapitel 06: Datenbanken. Marcel Noe

Fakultät für Informatik & Wirtschaftsinformatik DB & IS II - SS Metadaten

Order Ansicht Inhalt

Datenbanken: Datenintegrität.

Labor 3 - Datenbank mit MySQL

desk.modul : WaWi- Export

Integration von KS-Hostmonitor in itop

DB1 Abgabe Umsetzung der Callcenter Datenbank nach SQL von Daniel Häfliger, Dominik Süsstrunk und Reto Brühwiler

Datenbankadministration

MySQL-Befehle. In diesem Tutorial möchte ich eine kurze Übersicht der wichtigsten Befehle von MySQL geben.

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL - USER GUIDE June 2016

4.) Geben Sie im Feld Adresse die IP Adresse des TDC Controllers ein. Die Standard Adresse lautet

Eine Einführung in MySQL

MySQL: HAVING.

Version/Datum: Dezember-2006

Die InnoDB Storage Engine. Handy aus?

Präsentation mongodb. David Wild

SQL: statische Integrität

Partitionieren über Rechnergrenzen hinweg

Datenmanagement I SoSe 2006 Aufgabenblatt 4

DATENBANKEN SQL UND SQLITE VON MELANIE SCHLIEBENER

MySQL: Einfaches Rechnen.

SQL-Befehlsliste. Vereinbarung über die Schreibweise

MySQL Replikation für Einsteiger

Isolationsstufen für Transaktionen. Dr. Karsten Tolle

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL USER GUIDE June 2016

Bibliografische Informationen digitalisiert durch

Backup und PiTR mit MySQL

3 Query Language (QL) Einfachste Abfrage Ordnen Gruppieren... 7

Backup. Christian Inauen. Theorie. Praxis. Backup. Werkzeuge. Point-in-time Restore. ..bei MySQL

Exercise (Part I) Anastasia Mochalova, Lehrstuhl für ABWL und Wirtschaftsinformatik, Kath. Universität Eichstätt-Ingolstadt 1

NoSQL mit Postgres 15. Juni 2015

Logging und Debugging. Gerd Volberg OPITZ CONSULTING Deutschland GmbH

SanStore: Kurzanleitung / SanStore: Quick reference guide

Referentielle Integrität

Einrichten von NIS step by step

Datenbanksysteme 2013

MySQL Performance Tuning für Entwickler

Transaktionen in Praxis. Dr. Karsten Tolle Vorl

php Hier soll ein Überblick über das Erstellen von php Programmen gegeben werden. Inhaltsverzeichnis 1.Überblick Parameterübergabe...

Oracle Database 12c Was Sie immer schon über Indexe wissen wollten

Übung Datenbanken in der Praxis. Datenmodifikation mit SQL

Transaktionen in der Praxis. Dr. Karsten Tolle

Transaktionen in Praxis. Dr. Karsten Tolle Vorl

1.1 IPSec - Sporadische Panic

Therefore the respective option of the password-protected menu ("UPDATE TUBE DATA BASE") has to be selected:

Technical Support Information No. 123 Revision 2 June 2008

p^db=`oj===pìééçêíáåñçêã~íáçå=

Datenbanksysteme I. Klausur zum Praktikum. Mehrere Professoren prüfen mit genau einem Beisitzer genau einen Studenten.

Understanding InnoDB

SQL Tutorial. SQL - Tutorial SS 06. Hubert Baumgartner. INSO - Industrial Software


Funktion definieren Gibt Summe der Gehälter zurück. Aufruf in einem SQL-Statement

Netbeans 6.1 mit SVN Server unter Debian etch mit Windows Clients

MySQL New Features 5.6

Referentielle Integrität

Typo 3 installieren. Schritt 1: Download von Typo3

Chancen und Wachstumsfelder für PostgreSQL

MySQL Backup und Restore

Transkript:

Ergänzen Konfigurationsdatei my.ini auf Master-Server:!!! softgate gmbh!!! Master und Slave binary logging format - mixed recommended binlog_format = ROW Enabling this option causes the master to write checksums for events written to the binary log binlog-checksum=crc32 Nur Master required unique id between 1 and 2^32-1 defaults to 1 if master-host is not set but will not function as a master if omitted server-id=1 Nur Slave required unique id between 1 and 2^32-1 defaults to 1 if master-host is not set but will not function as a master if omitted server-id=2 Seite 1 von 16

Whether updates received by a slave server from a master server should be logged to the slave's own binary log log-slave-updates=1 which database should be replicated replicate-do-db=mysql To control reading of checksums by the slave (from the relay) log slave-sql-verify-checksum=1 The relay log info log holds status information about the execution point within the slave's relay log relay-log-info-repository=table The master info log contains status and current configuration information for the slave's connection to the master master-info-repository=table Enabling this option causes the master to verify events from the binary log using checksums, and to stop with an error in the event of a mismatch master-verify-checksum=true Ergänzen Konfigurationsdatei my.ini auf Slave-Server:!!! softgate gmbh!!! Master und Slave Seite 2 von 16

binary logging format - mixed recommended binlog_format = ROW Enabling this option causes the master to write checksums for events written to the binary log binlog-checksum=crc32 Nur Master required unique id between 1 and 2^32-1 defaults to 1 if master-host is not set but will not function as a master if omitted server-id=1 Nur Slave required unique id between 1 and 2^32-1 defaults to 1 if master-host is not set but will not function as a master if omitted server-id=2 Whether updates received by a slave server from a master server should be logged to the slave's own binary log log-slave-updates=1 Seite 3 von 16

which database should be replicated replicate-do-db=test To control reading of checksums by the slave (from the relay) log slave-sql-verify-checksum=1 The relay log info log holds status information about the execution point within the slave's relay log relay-log-info-repository=table The master info log contains status and current configuration information for the slave's connection to the master master-info-repository=table Enabling this option causes the master to verify events from the binary log using checksums, and to stop with an error in the event of a mismatch master-verify-checksum=true Auf Primärserver einen User replic1 mit Passwort replic1 erstellen mit den Berechtigungen Replikation, Super, Reload und Select auf alle Tabellen Seite 4 von 16

Seite 5 von 16

Primärserver über MySQL-Command-Line aufrufen: Seite 6 von 16

Show master status Seite 7 von 16

Datenbank anhalten mit FLUSH TABLES WITH READ LOCK; Seite 8 von 16

Show master status; Seite 9 von 16

File WERTHEIM-bin.000002 und Position 4403 merken Export der Datenbank mit mysqldump --events --opt --user=root --password=mysql test > c:\temp\mysql\test.dmp Seite 10 von 16

Seite 11 von 16

Replikationsserver aufsetzen Import der Primärserver-DB in die Replikations-DB mit Mysqldump: Konfigurationsdaten über MySQL-Command-Line einspielen: stop slave; change master to master_user='replic1'; change master to master_password='replic1'; Seite 12 von 16

change master to master_host='192.168.1.1'; change master to master_log_file='wertheim-bin.000005'; change master to master_log_pos=566; start slave; show slave status\g Primärserver über MySQL-Command-Line aufrufen: Datenbank entsperren mit Unlock tables; Seite 13 von 16

Test-Tabelle auf Primärserver erstellen: drop table test.testtable; CREATE TABLE test.testtable ( id int(11) NOT NULL AUTO_INCREMENT, c char(10) DEFAULT NULL, PRIMARY KEY (id) ); insert into test.testtable values (null, 'aaa'), (null, 'bbb'), (null, 'ccc'); insert into test.testtable values (null, 'b'), (null, 'bb'), (null, 'bbb'); insert into test.testtable values (null, 'c'), (null, 'cc'), (null, 'ccc'); insert into test.testtable values (null, 'd'), (null, 'dd'), (null, 'ddd'); commit; select * from test.testtable; Seite 14 von 16

Seite 15 von 16

Auf Replikationsserver mit select überprüfen, ob repliziert select * from test.testtable; Seite 16 von 16