简体   繁体   English

将Unidac 4.0.1与sqlite数据库连接时出错

[英]Error when connecting unidac 4.0.1 with sqlite database

I'm delphi user, i got problem when try to connect sqlite with my unidac 4.0.1 component. 我是delphi用户,尝试将sqlite与unidac 4.0.1组件连接时遇到问题。 I've dropped TUniConnection , Sqlite uniprovider, setting client library at specification property, but it always raised an error: 我删除了TUniConnection ,Sqlite uniprovider,在规范属性中设置了客户端库,但是它总是引发错误:

file is encrypted or is not database. 文件已加密或不是数据库。

I've used - lastest sqlite3.dll - delphi xe - unidac 4.0.1 - sqlite2009 Pro Enterprise (for creating sqlite 3 database file) 我用过-最新的sqlite3.dll-delphi xe-unidac 4.0.1-sqlite2009 Pro Enterprise(用于创建sqlite 3数据库文件)

Thanks. 谢谢。

I guess you did encrypt the file using Sqlite2009 Pro Enterprise. 我想您确实使用Sqlite2009 Pro Enterprise对文件进行了加密。

The standard sqlite3.dll does not implement encryption. 标准的sqlite3.dll不实现加密。

You'll need either the SQLite Encryption Extension (SEE) , either another implementation (like the one embedded in wxcode ). 您将需要SQLite加密扩展(SEE)或另一种实现(例如wxcode中嵌入的实现 )。

If your file is not encrypted, try to use another SQLite3 viewer (like SQLiteSpy or our SynDBExplorer ) to guess if the file is correct. 如果您的文件未加密,请尝试使用其他SQLite3查看器(例如SQLiteSpy或我们的SynDBExplorer )来猜测文件是否正确。

Also ensure the file is not created in "C:\\Program Files" folder, which is made "virtual" by the UAC. 还请确保未在“ C:\\ Program Files”文件夹中创建文件,该文件夹由UAC设置为“虚拟”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM