1)SSH登陆群晖
docker pull mysql
2)打开docker
![群晖docker部署MySQL](https://test-wordpress.oss-cn-hangzhou.aliyuncs.com/wp-content/uploads/2020/06/image-11.png)
3)设置root登陆密码
环境添加MYSQL_ROOT_PASSWORD变量,然后填上密码
![群晖docker部署MySQL](https://test-wordpress.oss-cn-hangzhou.aliyuncs.com/wp-content/uploads/2020/06/image-12.png)
4)启动MySQL容器
5)点击详情,打开终端机,点击新增、
apt-get update
apt-get install net-tools
apt-get install vim
![群晖docker部署MySQL](https://test-wordpress.oss-cn-hangzhou.aliyuncs.com/wp-content/uploads/2020/06/image-13.png)
6)登陆MySQL添加远程登陆
mysql -u root -p
![群晖docker部署MySQL](https://test-wordpress.oss-cn-hangzhou.aliyuncs.com/wp-content/uploads/2020/06/image-14.png)
7)Navicat Premium 15登陆MySQL
本作品采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可。
暂无评论
要发表评论,您必须先 登录