gpt4 book ai didi

delphi - 为什么我无法从firedac 打开我的sqlite 数据库?

转载 作者:行者123 更新时间:2023-12-03 15:28:15 29 4
gpt4 key购买 nike

我可以使用 sqlite maestro 应用程序打开加密的 sqlite 数据库,但不能使用 fiedac 打开我收到此错误

[FireDAC][Phys][SQLite] ERROR: Cipher: Invalid password is specified or DB is corrupted

这是我的数据模块单元:

object DM: TDM
OldCreateOrder = False
Height = 306
Width = 468
object FDConnection1: TFDConnection
Params.Strings = (
'Database=C:\myapps\mydb.db'
'Password=mypass'
'DriverID=SQLite')
LoginPrompt = False
Left = 48
Top = 16
end

我将加密 key 写为密码,但是当我不输入任何密码时,出现错误:

[FireDAC][Phys][SQLite] ERROR: file is encrypted or is not a database.

问题是什么?

最佳答案

发现问题了。根据the documentation :

The encrypted database format is not compatible with other similar SQLite encryption extensions. This means that you cannot use an encrypted database, encrypted with non-FireDAC libraries. If you need to do this, then you have to decrypt a database with an original tool and encrypt it with FireDAC.

我无法使用 SQLite Maestro(不同的库)加密并在 FireDAC 中打开它,因此我必须对其进行解密,然后使用 FireDAC 加密数据库。我使用了Delphi附带的加密示例,现在我可以使用FireDAC打开它。

关于delphi - 为什么我无法从firedac 打开我的sqlite 数据库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50109169/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com