请问,我在windows一般的环境下透过MySQL Workbench建了新的table 并且把MySQL存放的路径修改到了E:\mydata (输入show global variables like "%datadir%";可以确定修改成功) 在启用docker container时 (因为在测试的阶段,为了简化问题,试着不透过compose) docker run
docker toolbox run a unix system in virtualbox, you have to mount db dir to VM first.mount command: VBoxManage sharedfolder add default --name dbdata --hostpath /e/mydata --automount