MySQL
官方Docker 应用程序 from UNRA1DUser's Repository
概述
运行时参数
- 网络
bridge- 外壳
sh- 特权
- false
- 额外参数
--user=99:100 --memory=2G --restart=unless-stopped
模板配置
MYSQL_TCP_PORT
- 目标
- 3306
- 默认值
- 3306
Set to yes, to generate a random root password. The generated password will be printed to the logs (Docker > MySQL Icon > Logs).
- 目标
- MYSQL_RANDOM_ROOT_PASSWORD
- 默认值
- yes|
This variable is optional and allows you to specify the name of a database to be created on image startup. If a user/password was supplied (see below) then that user will be granted superuser access (corresponding to GRANT ALL) to this database.
- 目标
- MYSQL_DATABASE
- 默认值
- MYSQL_DATABASE
These variables are optional, used in conjunction to create a new user and to set that user's password. This user will be granted superuser permissions (see above) for the database specified by the MYSQL_DATABASE variable. Both variables are required for a user to be created. Do note that there is no need to use this mechanism to create the root superuser, that user gets created by default with the password specified by the MYSQL_ROOT_PASSWORD variable.
- 目标
- MYSQL_USER
- 默认值
- MYSQL_USER
These variables are optional, used in conjunction to create a new user and to set that user's password. This user will be granted superuser permissions (see above) for the database specified by the MYSQL_DATABASE variable. Both variables are required for a user to be created. Do note that there is no need to use this mechanism to create the root superuser, that user gets created by default with the password specified by the MYSQL_ROOT_PASSWORD variable.
- 目标
- MYSQL_PASSWORD
- 默认值
- MYSQL_PASSWORD
- 目标
- /var/lib/mysql
- 默认值
- /mnt/cache/appdata/mysql/data
- 目标
- /var/log/mysql
- 默认值
- /mnt/cache/appdata/mysql/logs
Generate Random Password must be empty if you like to set your own Root Password! This variable specifies the password that will be set for the MySQL root superuser account.
- 目标
- MYSQL_ROOT_PASSWORD
The default configuration for MySQL can be found in /etc/mysql/my.cnf, which may !includedir additional directories such as /etc/mysql/conf.d or /etc/mysql/mysql.conf.d. Please inspect the relevant files and directories within the mysql image itself for more details. This will start a new container where the MySQL instance uses the combined startup settings from /etc/mysql/my.cnf and /etc/mysql/conf.d/config-file.cnf, with settings from the latter taking precedence.
- 目标
- /etc/mysql/conf.d
- 默认值
- /mnt/cache/appdata/mysql/conf.d
When you run a MySQL container, it checks if MySQL directory /var/lib/mysql exist or not. If the directory doesn't exist (running it the first time), it will run your SQL files.
- 目标
- /docker-entrypoint-initdb.d
- 默认值
- /mnt/cache/appdata/mysql/initdb
下载统计数据
长期下载总量
详细信息
在Unraid 上运行 MySQL 。
MySQL 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。