您的位置:首页 > 博客中心 > 数据库 >

Linux下otl调用MySQL数据库

时间:2022-03-10 17:17

整体流程结构

otl用头文件otlv4.h来声明接口,具体实现在linux下是由unixODBC来实现;通过FreeTDS驱动最终调用MySQL的DBMS(个人观点)

要安装的软件及步骤

所以要安装的有unixODBC,FreeTDS

具体安装参考:(此文章里面的设置有问题,参考本文中的“关于odbcinst.ini和odbc.ini的说明一节”)

关于odbcinst.ini和odbc.ini的说明

参考: 这篇文章中提到了默认的odbcinst.ini的位置在/usr/local/etc,这是在安装unixODBC是产生的,可以通过odbcinst -j指令来查看其具体位置

However since beta 1.6 the location of the system files odbcinst.ini and odbc.ini are determined by the configure script. The default location is /usr/local/etc, and if a prefix is specified the location is {prefix}/etc. The location of the etc path can be broken out of the normal prefix tree by specifing --sysconfdir=DIR, so the following will expect the system files to be in the same location as pre 1.6 builds.

./configure --sysconfdir=/etc

 

Linux下otl调用MySQL数据库,布布扣,bubuko.com

热门排行

今日推荐

热门手游