Sphinx不会从SQL Server更新

问题描述 投票:1回答:1

我的Sphinx服务器使用mySQL或多或少地工作。但是,我需要集成到的系统是使用SQL Server。更改配置如下所示,更改不会被带来。

这是因为在SQL Server中更改过的文档无法覆盖Sphinx中的现有记录或其他原因吗?谢谢。

sphinx.conf.dist的片段

source src1
{
    # data source type. mandatory, no default value
    # known types are mysql, pgsql, mssql, xmlpipe, xmlpipe2, odbc
    type            = odbc

    #####################################################################
    ## SQL settings (for 'mysql' and 'pgsql' types)
    #####################################################################

    # some straightforward parameters for SQL source types
    sql_host        = localhost
    sql_user        = test
    sql_pass        = test123
    sql_db          = test
    sql_port        = 1433  # optional, default is 3306
sql-server sphinx
1个回答
0
投票

使用Jeroen建议的“odbc_dsn”设置,我找到了正确配置设置的正确途径。

© www.soinside.com 2019 - 2024. All rights reserved.