PmaControl logo PmaControl
  • Strona główna
  • Strona główna
    • PmaControl PmaControl
    • PmaControl PmaControl
    • PmaControl PmaControl
    • PmaControl PmaControl
    • Agenci AI Agenci AI
    Klienci
    • MariaDB 30 artykułów
    • MySQL 10 artykułów
    • Galera Cluster 6 artykułów
    • MaxScale 3 artykuły
    • ProxySQL 2 artykuły
    • Amazon Aurora MySQL 0 artykuły
    • Azure Database 0 artykuły
    • ClickHouse 0 artykuły
    • GCP CloudSQL 0 artykuły
    • Percona Server 0 artykuły
    • SingleStore 0 artykuły
    • TiDB 0 artykuły
    • Vitess 0 artykuły
    Bazy danych
    • Rozwiązania Rozwiązania
    • Observabilité SQL Rozwiązania
    • Haute disponibilité Rozwiązania
    • Disaster Recovery Rozwiązania
    • Sécurité & conformité Wsparcie 24×7
    • Migration & upgrade Wsparcie 24×7
  • PmaControl
  • Cennik
    • PmaControl Zasoby
    • Agenci AI Zasoby
    • Zasoby Zasoby
    • Zasoby Zasoby
    • Dokumentacja Dokumentacja
    Blog
    • Observabilité SQL Obszary ekspertyzy
    • Haute disponibilité Rozwiązania
    • Sécurité & conformité Obszary ekspertyzy
    • Disaster Recovery Rozwiązania
    • Performance & optimisation Obserwowalność SQL
    • Migration & upgrade Obserwowalność SQL
    Wydajność i optymalizacja
    • Szybkie linki Szybkie linki
    • Szybkie linki Szybkie linki
    • Rozwiązania Rozwiązania
    • Szybkie linki Szybkie linki
  • Rozwiązania
  • Szybkie linki
Szybkie linki
🇫🇷 FR Français 🇬🇧 EN English 🇵🇱 PL Polski 🇷🇺 RU Русский 🇨🇳 ZH 中文
PmaControl › Export de schéma versionné

Export de schéma versionné

Directory structure

pmacontrol/data/model/<id_mysql_server>/databases/<db_name>/
  00-pre/
    000-create-db.sql        # Optionnel
    010-session.sql          # Optionnel
    020-variables.sql        # Optionnel
  schema/
    tables/
      <table>.sql            # CREATE TABLE
    views/
      <view>.sql             # CREATE OR REPLACE VIEW
  routines/
    procedures/
      <proc>.sql             # DROP + CREATE PROCEDURE
    functions/
      <func>.sql             # DROP + CREATE FUNCTION
  triggers/
    <trigger>.sql            # DROP + CREATE TRIGGER
  events/
    <event>.sql              # DROP + CREATE EVENT
  data/
    <table>.sql              # INSERT (données de référence)
  99-post/
    999-cleanup.sql          # Optionnel

Git versioning

Each database has its own git repository, allowing schema change tracking over time. Commands:

# Export complet
php /srv/www/pmacontrol/glial schema export [id_serveur]

# Import sélectif
php /srv/www/pmacontrol/glial schema import --tables --views --procedures [id_serveur] [db_name]

# Flags disponibles
--tables --views --procedures --functions --triggers --events --all

Migration from the old format

One-shot migration from the old format (flat files without directory structure):

php /srv/www/pmacontrol/glial schema migration
On this page
  • Directory structure
  • Git versioning
  • Migration from the old format
← Previous page Next page →
PmaControl
+33 6 63 28 27 47 contact@pmacontrol.com
Platforma eksploatacji SQL GitHub Platforma eksploatacji SQL
Platforma eksploatacji SQL © 2014-2026 PmaControl — 68Koncept