sqlite3 .dump函数不保存文件(sqlite3 .dump function not saving file)

编程入门 行业动态 更新时间:2024-10-19 14:35:29
sqlite3 .dump函数不保存文件(sqlite3 .dump function not saving file)

我试图将数据库转储到文本文件,我使用这个语句: .dump | sqlite3 /Users/riceje7/Library/Application\ Support/Firefox/Profiles/4pixicxh.default/downloads.sqlite | gzip -c >database.dump.gz .dump | sqlite3 /Users/riceje7/Library/Application\ Support/Firefox/Profiles/4pixicxh.default/downloads.sqlite | gzip -c >database.dump.gz .dump | sqlite3 /Users/riceje7/Library/Application\ Support/Firefox/Profiles/4pixicxh.default/downloads.sqlite | gzip -c >database.dump.gz 。 我在终端中获得了begin transaction和commit语句,但该文件从未在我的计算机上保存。 有谁知道我做错了什么以及我怎么能让它发挥作用?

I am trying to dump a database to a text file, I am using this statement: .dump | sqlite3 /Users/riceje7/Library/Application\ Support/Firefox/Profiles/4pixicxh.default/downloads.sqlite | gzip -c >database.dump.gz. I get a begin transaction and commit statement in the terminal but the file never saves anywhere on my computer. Does anyone know what I am doing wrong and how i can get this to work?

最满意答案

使用以下语法:

sqlite3 /Users/riceje7/Library/Application/Support/Firefox/Profiles/4pixicxh.default/downloads.sqlite .dump | gzip -c >database.dump.gz

figured it out...the file i was trying to access was a protected file, all i had to do was copy the file to another location and access it there. thanks for the answer though

更多推荐

本文发布于:2023-07-23 18:35:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1235635.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不保存   函数   文件   dump   saving

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!