希望有人可以在这里帮助我。
我正在尝试在Ubuntu 18.04上安装PHP 7.2,以使用ODBC(unixODBC)连接到远程SQL Anywhere 11(Windows Sybase?)服务器。
我已经遵循了很多指南,但是似乎没有任何作用,我只是找不到有关如何执行此操作的任何特定信息/文档。
我似乎也找不到适合初学者的SQL Anywhere 11下载。已为PHP安装了ODBC和PDO支持,并为FreeTDS / Sybase DB-lib安装了PDO驱动程序。
我可以远程登录服务器:2638
当我运行以下命令时,我得到了错误,有人说我不能在Sql Anywhere中使用freetds?
waddy@testserver:~$ TDSVER=4.2 tsql -H 10.10.10.26 -p 2638 -U username -P guest -D test
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
Setting test as default database in login packet
Msg 911 (severity 16, state 0) from [10.10.10.26]:
"SQL Anywhere Error -83: Specified database not found"
Error 20002 (severity 9):
Adaptive Server connection failed
There was a problem connecting to the server
tsql -C
Compile-time settings (established with the "configure" script)
Version: freetds v1.00.82
freetds.conf directory: /etc/freetds
MS db-lib source compatibility: no
Sybase binary compatibility: yes
Thread safety: yes
iconv library: yes
TDS version: 4.2
iODBC: no
unixodbc: yes
SSPI "trusted" logins: no
Kerberos: yes
OpenSSL: no
GnuTLS: yes
MARS: no
你能指出我正确的方向吗?
在哪里可以下载Ubuntu的SQL Anywhere 11驱动程序?
我已安装:sudo apt install php-odbc php-sybase tdsodbc