MariaDB-Official
官方Docker 应用程序 from mgutt's Repository
概述
Official MariaDB database container. It allows to set a database and username without using the console.
MariaDB is a community-developed, commercially supported fork of MySQL (RDBMS).
Root Password:
This container creates by default a random root password on initial execution. Open Docker > MariaDB Icon > Logs > Scroll down to "GENERATED ROOT PASSWORD" to find it.
Creating database dumps
docker exec MariaDB-Official sh -c 'exec mysqldump --all-databases -uroot -p"YOUR_ROOT_PASSWORD"' > /mnt/user/Backups/all-databases.sql
Restoring data from dump files
docker exec -i MariaDB-Official sh -c 'exec mysql -uroot -p"YOUR_ROOT_PASSWORD"' < /mnt/user/Backups/all-databases.sql
运行时参数
- 网络
bridge- 外壳
sh- 特权
- false
- 额外参数
--user=99:100 --memory=2G
模板配置
PortPorttcp
Container Port: 3306
- 目标
- 3306
- 价值
- 3306
Generate Random PasswordVariable
Set to yes, to generate a random root password. The generated password will be printed to the logs (Docker > MariaDB Icon > Logs).
- 目标
- MARIADB_RANDOM_ROOT_PASSWORD
- 价值
- Yes
Database NameVariable
This variable allows you to specify the name of a database to be created on image startup.
- 目标
- MARIADB_DATABASE
- 价值
- dbname_here
Database UserVariable
Container Variable: MARIADB_USER
- 目标
- MARIADB_USER
- 价值
- dbuser_here
Database PasswordVariable
Container Variable: MARIADB_PASSWORD
- 目标
- MARIADB_PASSWORD
DataPathrw
Recommened: For better performance replace /mnt/user against /mnt/cache. Note: This requires appdata share caching set to Prefer or Only!
- 目标
- /var/lib/mysql
- 价值
- /mnt/user/appdata/mariadb-official/data
ConfigPathrw
Container Path: /etc/mysql/conf.d
- 目标
- /etc/mysql/conf.d
- 价值
- /mnt/user/appdata/mariadb-official/config
Root PasswordVariable
Generate Random Password must be empty if you like to set your own Root Password!
- 目标
- MARIADB_ROOT_PASSWORD
下载统计数据
0
下载总数
22,924,444
本月
15,154,367
平均每月
长期下载总量
加载图表...
详细信息
在Unraid 上运行 MariaDB-Official 。
MariaDB-Official 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。