weixin_46165998 2020-01-09 17:40 采纳率: 0%
浏览 456
已结题

postgre SQL初学,restore dvdrental 数据库时报错,请教如何解决?

postgre SQL初学,restore dvdrental时报错,请教如何解决?感谢!

有没有完好的PostgreSQL数据库资源供练习?最好还是dvdrental,在complete SQL bootcamp教程里使用的范例数据库

pg_restore: connecting to database for restore
pg_restore: implied data-only restore
pg_restore: processing data for table "public.actor"
pg_restore: while PROCESSING TOC:
pg_restore: from TOC entry 3057; 0 16757 TABLE DATA actor postgres
pg_restore: error: could not execute query: 错误: 关系 "public.actor" 不存在
Command was: COPY public.actor (actor_id, first_name, last_name, last_update) FROM stdin;
pg_restore: error: could not find header for file "3057.dat" in tar archive

  • 写回答

1条回答 默认 最新

  • threenewbee 2020-01-10 13:20
    关注

    could not find header for file "3057.dat" in tar archive
    文件本身损坏,你用解压缩文件打开这个tar看看,里面有没有3057.dat
    还有就是你恢复的数据库的结构要和备份一致

    评论

报告相同问题?

悬赏问题

  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)
  • ¥20 Python安装cvxpy库出问题
  • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误
  • ¥15 python天天向上类似问题,但没有清零
  • ¥30 3天&7天&&15天&销量如何统计同一行
  • ¥30 帮我写一段可以读取LD2450数据并计算距离的Arduino代码
  • ¥15 C#调用python代码(python带有库)
  • ¥15 活动选择题。最多可以参加几个项目?
  • ¥15 飞机曲面部件如机翼,壁板等具体的孔位模型
  • ¥15 vs2019中数据导出问题