【发布时间】:2021-01-20 08:10:57
【问题描述】:
这些相似但不完全相同
How to execute MySQL command from the host to container running MySQL server?
How to execute mysqldump command from the host machine to a mysql docker container
即使在 Windows 上,这个命令在 Git Bash 中也能很好地工作:
docker exec -i some_docker_container mysql -uroot -psome_password mydb<tables.sql
Powershell 上的相同命令说:
ERROR 1049 (42000): Unknown database 'mydb<tables.sql'
如何将tables.sql 文件作为参数传递? (它包含一些创建表语句)
【问题讨论】:
标签: mysql docker powershell