数据库备份 例如:备份 /www/wwwroot 下面的 task.db 数据库 进入数据库 [root@localhost ~]# sqlite3 /www/wwwroot/task.db 备份数据库 sqlite> .output
例如:备份 /www/wwwroot 下面的 task.db 数据库
进入数据库
[root@localhost ~]# sqlite3 /www/wwwroot/task.db
备份数据库
sqlite> .output test.sql
sqlite> .dump
sqlite> .output stdout
例如:仅仅导出数据库中的某张表的数据,导出到 test.txt 文件中。
sqlite> .output test.txt
sqlite> select * from tb_task;
sqlite> .output stdout
--结束END--
本文标题: Sqlite—数据库备份与恢复
本文链接: https://www.lsjlt.com/news/3312.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0