- 导出
docker exec -it magicalcoder mysqldump -uroot -proot123 magicalcoder > /home/a/桌面/zigbeeProject/magicalcoder.sql
- 导入
docker exec -i magicalcoder1 mysql -h ip -uroot -proot123 -P3306 -h127.0.0.1 magicalcoder > /home/a/桌面/zigbeeProject/magicalcoder.sql
可能出现的问题:
https://blog.csdn.net/mellymengyan/article/details/78958486