【问题标题】:Delphi FireDac (TFDConnection) connect to Sphinx serviceDelphi FireDac (TFDConnection) 连接到 Sphinx 服务
【发布时间】:2015-10-02 15:31:29
【问题描述】:

可以通过 TFDConnection 将 Delphi 与 Sphinx 连接起来吗?我试过这个设置:

Port=9306
Server=127.0.0.1
DriverID=MySQL

但 TFDConnection 引发异常:

[FireDAC][Phys][MySQL]-1101. Unsupported MySQL version [203010000]. Supported are client and server from v 3.20 to v 6.2

【问题讨论】:

  • 如果你有 FireDAC 源,那么你可以注释检查 MySQL 版本,这会引发异常。然后可能您将能够连接。 “可能”,因为我不知道 Sphinx 如何与 MySQL 兼容。

标签: delphi sphinx datasnap firedac


【解决方案1】:

也许你可以让 sphinx 报告一个假的 mysql 版本,比如 5.0.0 之类的,然后可以与你的连接库一起使用

http://sphinxsearch.com/docs/current.html#conf-mysql-version-string

【讨论】:

    猜你喜欢
    • 2021-12-10
    • 1970-01-01
    • 1970-01-01
    • 2015-11-13
    • 1970-01-01
    • 2017-11-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多