H2-Datenbank: readonly-User anlegen, optional mit AUTO_SERVER starten #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Um auf die H2-Datenbank bei laufendem Programm zugreifen zu können, kann die Datenbank mit AUTO_SERVER gestartet werden (dafür in cfg die Datei de.jost_net.JVerein.rmi.JVereinDBService.properties erzeugen; Inhalt ist die Zeile database.driver.h2.auto_server=true). Um nicht ungewollt Änderungen in der Datenbank vorzunehmen, habe ich den User readonly mit Passwort jverein angelegt, der nur Leserechte hat.
Wir verwenden Python-Skripte für diverse Auswertungen, und es ist sehr lästig, jedesmal Jameica schließen zu müssen. Unter Linux hatte es noch funktioniert, die Datenbankdatei zu kopieren, aber unter Windows kann keine Kopie erzeugt werden, solange Jameica läuft.