I am setting up Sphinxsearch for Linux, also I have remote MSSQL Server. I have installed unixODBC and freetds accroding to documentation.
odbcinst.ini file:
[FreeTDS]
Description=v0.63 with protocol v7.3
Driver = /usr/local/lib/libtdsodbc.so
FileUsage = 1
CPTimeout = 5
odbc.ini file:
[Sphinx]
Driver = FreeTDS
Description = MS-SQL
Trace = No
#Servername = mssql02
Server = XX.XX.XX
Port = 1433
Database = DBNAME
[Default]
Driver = /usr/local/lib/libtdsodbc.so
freetds.conf file:
[mssql02]
host = XX.XX.XX
port = 1433
tds version = 7.3
instance = MSSQL02
And the last but not least sphinx.conf file:
source test
{
type = odbc
sql_host = XX.XX.XX
sql_user = USERNAME
sql_pass = PASS
sql_db = DBNAME
sql_port = 1433
odbc_dsn = DSN=Sphinx;Driver={/usr/local/etc/odbc.ini};Uid=USERNAME;Pwd=PASS
...more_config...
}
When using following command
indexer --all
I get the following message:
ERROR: source 'test': unknown type 'odbc'; skipping.
Nevertheless isql command works fine:
$ isql Sphinx LOGIN PASS
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
What am I doing wrong? Any advice is appreciated.