mirror of https://github.com/tiyn/wiki
parent
5876bc0e26
commit
33fdfdfc90
@ -0,0 +1,9 @@
|
||||
# Databases
|
||||
|
||||
Databases are data collections of a computer system.
|
||||
Most prominent type of database are SQL databases.
|
||||
|
||||
## Database management systems (DBMS)
|
||||
|
||||
- [MySQL](./mysql.md) is a relational DBMS
|
||||
- [MariaDB](./mariadb.md) is a relational DBMS that is a fork of MySQL
|
@ -0,0 +1,30 @@
|
||||
# MariaDB
|
||||
|
||||
[MariaDB](https://www.mariadb.com) is an open-source database management system
|
||||
forked from [mySQL](./mysql.md).
|
||||
|
||||
## Setup Server with Docker
|
||||
|
||||
The official container and documentation was made by [mariadb](https://hub.docker.com/_/mariadb).
|
||||
The Docker container is mainly used in combination with other containers.
|
||||
To achieve this in the easiest way use a docker-compose file
|
||||
|
||||
### Environment-variables
|
||||
|
||||
Set the following environment-variables in the `environment:` section of the
|
||||
docker-compose file.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| --------------------- | ----------------------------- | ------- |
|
||||
| `MYSQL_ROOT_PASSWORD` | set the mysql admin password | |
|
||||
| `MYSQL_USER` | set the mysql username | |
|
||||
| `MYSQL_PASSWORD` | set the mysql user password | |
|
||||
| `MYSQL_Database` | specify mysql database to use | |
|
||||
|
||||
### Volumes
|
||||
|
||||
Set the following volumes in the `volumes:` section of the docker-compose file.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | ---------------- | ------------------------- |
|
||||
| `mysql` | `/var/lib/mysql` | storage for owncloud data |
|
@ -0,0 +1,34 @@
|
||||
# MySQL
|
||||
|
||||
[MySQL](https://www.mysql.com) is an open-source database management system.
|
||||
|
||||
## Setup with Docker
|
||||
|
||||
The official container and documentation was made by [MySQL](https://hub.docker.com/_/mysql).
|
||||
The Docker container is mainly used in combination with other containers.
|
||||
To achieve this in the easiest way use a docker-compose file
|
||||
|
||||
### Environment-variables
|
||||
|
||||
Set the following environment-variables in the `environment:` section of the
|
||||
docker-compose file.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| --------------------- | ----------------------------- | ------- |
|
||||
| `MYSQL_ROOT_PASSWORD` | set the mysql admin password | |
|
||||
| `MYSQL_USER` | set the mysql username | |
|
||||
| `MYSQL_PASSWORD` | set the mysql user password | |
|
||||
| `MYSQL_Database` | specify mysql database to use | |
|
||||
|
||||
### Volumes
|
||||
|
||||
Set the following volumes in the `volumes:` section of the docker-compose file.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ----------- | ---------------- | ------------------------- |
|
||||
| `mysql` | `/var/lib/mysql` | storage for owncloud data |
|
||||
|
||||
### Networks
|
||||
|
||||
You can set networks in the `networks:` part of a docker-compose file to connect
|
||||
the database with other docker containers.
|
Loading…
Reference in new issue