1

我有在 Windows 中创建 sqlite3 数据库的情况,我希望他们在 Ubuntu 机器上处理它。当我尝试在 Ubuntu 中打开它们时:

sqlite3 dbname

在控制台内,对于所有评论,我收到的错误消息为:

Error: malformed database schema (updateTimeStampActions) - no such table: main.actions

如何在 Ubuntu 中处理数据库?

4

1 回答 1

1

根据 Sqlite 网站,db 文件是平台无关的:

" SQLite 中的数据库是单个磁盘文件。此外,文件格式是跨平台的。在一台机器上创建的数据库可以复制并在具有不同架构的不同机器上使用。SQLite 数据库可跨 32- bit 和 64 位机器以及 big-endian 和 little-endian 架构之间的关系"

请点击链接:http ://www.sqlite.org/onefile.html

你可以参考这个线程进行进一步的解释:Sqlite data file on Linux and OS X incompatible?

于 2013-02-22T12:57:10.753 回答