#cd /vendor/unixODBC/unixODBC-2.3.0
--注释此行#./configure --prefix=/usr --enable-driver-conf
--enable-drivers
CPPFLAGS="-DSQL_WCHART_CONVERT -DUNICODE"
#./configure --prefix=/usr
#make
#make install
#vi /etc/profile
追加如下信息:
export ODBCINI=/usr/etc/odbc.ini
export ODBCSYSINI=/usr/etc
mysql-connector-odbc-5.1.11-linux-glibc2.3-x86-32bit.tar.gz
解压文件到当前文件
# Mv mysql-connector-odbc-5.1.11-linux-glibc2.3-x86-32bit
myodbc
#vi /usr/etc/odbcinst.ini
[mysql]
Description = mysql
Driver = /root/myodbc/lib/libmyodbc5.so
#此为mysqlodbc解压的目录#
Driver64 =
Setup64 =
UsageCount = 1
CPTimeout =
CPReuse =
#vi /usr/etc/odbc.ini
[sevs_mdb] 配置内存数据库的连接
Description = mysql
Driver = mysql
Server = 192.168.1.170
Database = gyb_mdb_2_5_1
Port = 3306
Socket =
Option =
Stmt =