{"id":18836322,"url":"https://github.com/obitech/flugdb","last_synced_at":"2026-04-19T02:02:07.054Z","repository":{"id":144377681,"uuid":"110356235","full_name":"obitech/flugdb","owner":"obitech","description":"Docker MariaDB container for TUC Grundlagen Datenbanken practice database","archived":false,"fork":false,"pushed_at":"2017-11-12T15:30:54.000Z","size":303,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-22T18:34:38.593Z","etag":null,"topics":["database","docker","mariadb","tu-chemnitz"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/obitech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-11-11T15:25:34.000Z","updated_at":"2020-02-01T14:59:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"d54c6447-b50e-4845-886d-65d0991ed355","html_url":"https://github.com/obitech/flugdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/obitech/flugdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obitech%2Fflugdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obitech%2Fflugdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obitech%2Fflugdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obitech%2Fflugdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obitech","download_url":"https://codeload.github.com/obitech/flugdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obitech%2Fflugdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279128375,"owners_count":26109741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","docker","mariadb","tu-chemnitz"],"created_at":"2024-11-08T02:21:24.471Z","updated_at":"2025-10-15T23:30:15.110Z","avatar_url":"https://github.com/obitech.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# TUC 'Grundlagen Datenbanken' Practice Database\nThis is a Docker [MariaDB container](https://hub.docker.com/_/mariadb/) with the provided database model applied. Docker lets you run the database server in an isolated environment without having to install MySQL Server or PostGres (+ dependencies) on your system. Once the container is up it can be reached under ``localhost`` (or ``127.0.0.1``) and port ``3306``. \n\nYour database will be located in ``flugdb/data`` on your system and mapped inside the container, so changes to the flug database will persist. The container itself is stateless, meaning any changes affecting the database **server** (configuration parameters, new users, etc) will be gone after you stop or restart the container. \n## Environment\nSetting | Value | Usage | Environment variable\n---|---|---|---\nHostname | localhost (127.0.0.1) | The address your db server will be reachable under | -\nPort | 3306 | The port your db server will be reachable under | -\nDatabase | flug | Name of our database | MYSQL_DATABASE=flug\nUser | tuc | Custom MySQL user | MYSQL_USER=tuc\nPassword | tuc | Password for our custom user | MYSQL_PASSWORD=tuc\nRoot password | root | Password for MySQL root user | MYSQL_ROOT_PASSWORD=root\n\n## Setup\n### Install Docker\nInstall Docker for [Ubuntu](https://docs.docker.com/engine/installation/), [Deabian](https://docs.docker.com/engine/installation/linux/docker-ce/debian/) or [macOS](https://docs.docker.com/docker-for-mac/install/). If you're running Linux you also have  to install [Docker Compose](https://docs.docker.com/compose/install/#prerequisites).\n### Clone repo\nOpen a terminal, navigate to the folder where you want this repo set up and then type:\n```\n$ git clone https://github.com/obitech/flugdb.git\n$ cd flugdb/\n```\n### Start container\nIn your terminal, make sure you're in the ``flugdb/`` folder, then start the container with ``docker-compose up -d`` to let it run in the background.\n```\n$ docker-compose up -d\nCreating network \"flugdb_default\" with the default driver\nCreating flugdb ...\nCreating flugdb ... done\n```\n\nYou can see logs with ``docker-compose logs`` and ``docker-compose logs -f`` (-f for follow, leave view with CTRL+C).\n```\n$ docker-compose up -d \u0026\u0026 docker-compose logs -f\n```\nCheck with ``docker ps`` if your container is running.\n```\n$ docker ps\nCONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES\n22a9803261ce        mariadb:latest      \"docker-entrypoint...\"   14 seconds ago       Up 15 seconds        3306/tcp            flugdb\n```\n### Stop container\nUse ``docker-compose down`` to shutdown your container after you're done working with it (if you're connected to your container type ``exit`` first).\n```\n$ docker-compose down\nStopping flugdb ... done\nRemoving flugdb ... done\nRemoving network flugdb_default\n$ docker ps\nCONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\n```\n## Sending SQL statements \n### Using ``mysql`` CLI\nFirst connect to your container:\n```\n$ docker exec -it flugdb bash\nroot@22a9803261ce:/#\n```\nThen, inside your container, connect to the MariaDB server and flug database with ``mysql --user tuc --password flug``. When prompted for a password, enter **tuc**.\n```\nroot@22a9803261ce:/# mysql --user tuc --password flug\nEnter password:\nReading table information for completion of table and column names\nYou can turn off this feature to get a quicker startup with -A\n\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\nYour MariaDB connection id is 8\nServer version: 10.2.10-MariaDB-10.2.10+maria~jessie mariadb.org binary distribution\n\nCopyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\nMariaDB [flug]\u003e\n```\nFinally, send your statement:\n```\nMariaDB [flug]\u003e SELECT * FROM pilot;\n+------+-----------------+------------+------------+--------+\n| pinr | name            | gebdat     | quali      | flug_h |\n+------+-----------------+------------+------------+--------+\n|    1 | Jan Kretschmer  | 1959-12-05 | Pilot      |   2188 |\n|    2 | Nico Oppermann  | 1969-01-10 | Pilot      |   2151 |\n|    3 | Jan Hummel      | 1976-01-28 | Captain    |    350 |\n|    4 | Jan Berger      | 1974-09-19 | Chiefpilot |    826 |\n|    5 | Helmut Pampel   | 1971-09-29 | Pilot      |    555 |\n|    6 | Ronny Schmidt   | 1968-03-07 | Captain    |   1754 |\n|    7 | Marsell Reier   | 1955-07-26 | Chiefpilot |    278 |\n|    8 | Kurt Bliemel    | 1959-08-13 | Chiefpilot |   1655 |\n|    9 | Ronny Drescher  | 1964-02-26 | Chiefpilot |   1156 |\n|   10 | Edmund Langer   | 1971-03-08 | Captain    |   1738 |\n|   27 | Fritz Linke     | 1956-06-04 | Pilot      |    982 |\n|   84 | Fritz Strauch   | 1956-03-16 | Pilot      |   1760 |\n|  142 | Andre Pflug     | 1970-11-23 | Captain    |   1824 |\n|  143 | Fritz Gelfert   | 1968-01-25 | Captain    |   1055 |\n|  150 | Helmut Krone    | 1974-02-10 | Chiefpilot |    356 |\n|  158 | Fritz Melzer    | 1958-09-16 | Pilot      |   1111 |\n|  166 | Fritz Ackermann | 1962-08-02 | Chiefpilot |    487 |\n|  194 | Fritz Wandel    | 1977-01-03 | Pilot      |   1117 |\n+------+-----------------+------------+------------+--------+\n18 rows in set (0.00 sec)\n```\nYou can leave the ``mysql`` CLI with CTRL+C and exit the container with ``exit``\n```\nMariaDB [flug]\u003e Ctrl-C -- exit!\nAborted\nroot@96e87116c32a:/# exit\nexit\n```\n### Using a DB Management System\nYou can use a Database Management System such as [DBeaver](https://dbeaver.jkiss.org/download/) or [MySQL Workbench](https://dev.mysql.com/downloads/workbench/) to work with your DB. For this we will use DBeaver.\n1. Start DBeaver and click on Database \u003e New Connection\n2. Choose MariaDB as driver\n3. Enter credentials\n * Host: localhost\n  * Port: 3306\n  * Database: flug\n  * User name: tuc\n  * Password: tuc\n4. Click Test Connection and download MariaDB driver, if necessary\n5. Complete Setup wizard\n## DB Scheme\n![a database scheme](https://raw.githubusercontent.com/obitech/flugdb/master/static/dbscheme_flugdb.png \"Database scheme for flug\")","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobitech%2Fflugdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobitech%2Fflugdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobitech%2Fflugdb/lists"}