Novachron: Unterschied zwischen den Versionen

Aus HB9FDZ
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
=Crash DB MySQL Novachron Smart Time Plus 7=
== MySQL Dump erstellen und wiederherstellen (NovaCHRON Smart Time 9.0) ==
Sollte Smartime normal starten aber weder Mitarbeiten noch sonstige Daten anzeigen ist wahrscheinlich die Datenbank beschädigt. Der Datenpfad zur entsprechenden Datenbank befindet sich unter c:\programdata\novachron\
==Windows Server Installation mit Backup==
Wenn diese auf einem Windows Server installiert ist, kann diese ohne Probleme durch stoppen des MySQL-Dienstes und wieder herstellen des kompletten Verzeichnisses<span style="display: inline !important; float: none; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">c:\programdata\novachron\ und wieder starten des Dienstes ohne Probleme auf den Stand des Backups gebracht werden. Im Zeiterfassungstermain gespeicherte Daten werden danach automatisch wieder synchronisiert.</span>
==<span style="display: inline !important; float: none; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">Einzelplatzinstallation</span>==
<span style="display: inline !important; float: none; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">Ist die Installation auf einem Einzelplatzrechner macht es sinn die Datenbank auf einen externen FTP Server zu laden. Da dies den Datenverlust auf ein Minimum reduziert. Das verwenden eines automatischen Backupprogrammes mit automatischen Upload des SQL-Dumps auf den FTP Server.</span>


=== Voraussetzungen ===
* MySQL liegt '''nicht''' im System-PATH
* Installationspfad: <code>C:\Program Files (x86)\NovaCHRON\smart time 9.0\MySQL\bin</code>
* Datenbankname: <code>novachron</code>


<span style="display: inline !important; float: none; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">Die Wiederherstellung ist simpel, mit HeidiSQL- Löschen der Datenbank "novachron", danach diese neu erstellen. Diese auswählen und unter Datei -> SQL laden und die Sicherung wieder Herstellen. Danach sollten die Daten weider verfügbar sein.</span>
=== Dump erstellen ===
<syntaxhighlight lang="bash">
cd "C:\Program Files (x86)\NovaCHRON\smart time 9.0\MySQL\bin"
mysqldump -u root -p novachron > novachron_dump.sql
</syntaxhighlight>


'''Hinweise:'''
* Es wird nach dem Passwort gefragt (Standard: kein Passwort)
* Die Datei <code>novachron_dump.sql</code> wird im aktuellen Verzeichnis gespeichert


<span style="display: inline !important; float: none; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">Benutzername ist root
=== Dump wieder einlesen ===
Passwort ist keines hinterlegt
<syntaxhighlight lang="bash">
</span>
cd "C:\Program Files (x86)\NovaCHRON\smart time 9.0\MySQL\bin"
mysql -u root -p novachron < novachron_dump.sql
</syntaxhighlight>


Falls die Datenbank noch nicht existiert:
<syntaxhighlight lang="sql">
CREATE DATABASE novachron;
</syntaxhighlight>


<span style="display: inline !important; float: none; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">
=== Fehlerbehebung ===
</span>
* Bei Problemen mit Umlauten: Kollation auf <code>latin1_german1_ci</code> setzen
* Bei leerem Import: prüfen, ob <code>INSERT INTO</code>-Statements im Dump enthalten sind
* Bei Serverumzug: In der Tabelle <code>generaloption</code> den Wert <code>RunAsServ</code> auf den neuen Servernamen setzen


 
[[Kategorie:Zeiterfassung]]
<span style="display: inline !important; float: none; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">Achtung! Beim Wiederherstellen der Datenbank ist unbedingt zu schauen das die Koallation auf latin1_german1_ci steht. Da sonst die Umlaute nicht korrekt dargestelt werden</span>
[[Kategorie:MYSQL]]

Aktuelle Version vom 8. August 2025, 10:02 Uhr

MySQL Dump erstellen und wiederherstellen (NovaCHRON Smart Time 9.0)

[Bearbeiten | Quelltext bearbeiten]

Voraussetzungen

[Bearbeiten | Quelltext bearbeiten]
  • MySQL liegt nicht im System-PATH
  • Installationspfad: C:\Program Files (x86)\NovaCHRON\smart time 9.0\MySQL\bin
  • Datenbankname: novachron
cd "C:\Program Files (x86)\NovaCHRON\smart time 9.0\MySQL\bin"
mysqldump -u root -p novachron > novachron_dump.sql

Hinweise:

  • Es wird nach dem Passwort gefragt (Standard: kein Passwort)
  • Die Datei novachron_dump.sql wird im aktuellen Verzeichnis gespeichert

Dump wieder einlesen

[Bearbeiten | Quelltext bearbeiten]
cd "C:\Program Files (x86)\NovaCHRON\smart time 9.0\MySQL\bin"
mysql -u root -p novachron < novachron_dump.sql

Falls die Datenbank noch nicht existiert:

CREATE DATABASE novachron;
  • Bei Problemen mit Umlauten: Kollation auf latin1_german1_ci setzen
  • Bei leerem Import: prüfen, ob INSERT INTO-Statements im Dump enthalten sind
  • Bei Serverumzug: In der Tabelle generaloption den Wert RunAsServ auf den neuen Servernamen setzen