synologu 安装 mysql

https://mariushosting.com/how-to-install-mysql-on-your-synology-nas/

Once you click on User-defined script, a new window will open. Follow the instructions below:

  1. General: In the Task field type in Install MySQL. Uncheck the “Enabled” option. Select root User.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that, click OK.
docker run -d --name=mysql \
-p 3306:3306 \
-p 33060:33060 \
-e PUID=1026 \
-e PGID=100 \
-e TZ=Europe/Bucharest \
-e MYSQL_ROOT_PASSWORD=mariushosting \
-v /volume1/docker/mysql:/var/lib/mysql \
--restart always \
mysql

Note: Before you paste the code above in the Run command area below, change the value numbers for PUID and PGID with your own values. (Follow my step by step guide on how to do this.)
Note: Before you paste the code above in the Run command area below, change the value for TZ. (Select your current Time Zone from this list.)
Note: Before you paste the code above in the Run command area below, change the value for MYSQL_ROOT_PASSWORD and add your own password. mariushosting is an example of a password.

MySQL Synology NAS Set up 3

评论

此博客中的热门博文

带8个免费监控授权的黑群晖DSM7.X安装教程和注意事项

甲骨文云dd重装系统一键脚本

synology 查看隐藏目录和 文件夹大小