【发布时间】:2020-06-07 00:09:19
【问题描述】:
所以如果我使用 sqlite3 包在 Python 中创建一个数据库:
import sqlite3
con = sqlite3.connect('test.db')
我无法在 bash 中使用 sqlite 命令行打开数据库:
sqlite test.db
Unable to open database "test": file is encrypted or is not a database
但是,我可以在 Python 中使用 sqlite3 连接到使用 sqlite 命令行创建的数据库。
如何在 sqlite 命令行中打开 Python 创建的 dbs?
【问题讨论】:
-
你看过这些帖子吗:关于版本不匹配stackoverflow.com/questions/1513849/…或关于密码问题stackoverflow.com/questions/16030601/…?