DDEV Import-DB:未能提取提供的存档:在读取TAR存档期间的错误|错误:存档/焦油:无效的焦油标题
我正在尝试使用DDEV导入MySQL数据库,但是我遇到以下错误:
ddev import-db --src=.ddev/imports/db/hfweb.tar.gz
Failed to import database db for hfweb: failed to extract provided archive: error during read of tar archive /home/devwalid/de-construct/bitbucket/hfweb/.ddev/imports/db/hfweb.tar.gz, err: archive/tar: invalid tar header
I am trying to import a mySQL database using DDEV but I am running into the following error:
ddev import-db --src=.ddev/imports/db/hfweb.tar.gz
Failed to import database db for hfweb: failed to extract provided archive: error during read of tar archive /home/devwalid/de-construct/bitbucket/hfweb/.ddev/imports/db/hfweb.tar.gz, err: archive/tar: invalid tar header
Here is my current folder structure:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的tarball没有gz骨,也没有适当的焦油格式。尝试使用
tar -tzf hfweb.tar.gz
检查它,看看是否可以做到这一点。尽管DDEV可以从大多数人使用SQL或GZZLECKER SQL中导入GZ的TARBALL(包含SQL文件)。例如,如果您有一个名为
sosity.sql
的文件,则可以使用gzip sosings.sql
gzip gzip,然后使用结果sothings.sql.gz 使用DDEV,或仅使用原始
sothing.sql
。You tarball isn't gzipped, or isn't in proper tar format. Try inspecting it with
tar -tzf hfweb.tar.gz
and see if you can do that.Although ddev can import from a gzipped tarball (containing an sql file) most people just use sql or gzipped sql. For example, if you have a file named
something.sql
you can gzip it withgzip something.sql
and then use the resultantsomething.sql.gz
with ddev, or just use the originalsomething.sql
.