我对“my.cnf”进行了编辑后,在Mac上尝试启动容器时,Kitematic出现错误:
mysqld: [ERROR] Found option without preceding group in config file /etc/mysql/my.cnf at line 19! mysqld:
[ERROR] Fatal error in defaults handling. Program aborted!
我已经尝试通过以下方式访问容器:
docker exec -it [container] bash
...但是我遇到了错误:
Error response from daemon: Container [container] is not running
我能够通过图像访问某些内容,但文件似乎不同,所以我不确定发生了什么(我对Docker不是很熟悉)。
在这个阶段,要么进行适当的编辑和修复容器,要么以某种方式将MySQL数据克隆到另一个容器中都是理想的。