青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

<2006年10月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

統計

  • 隨筆 - 44
  • 文章 - 0
  • 評論 - 86
  • 引用 - 0

常用鏈接

留言簿(6)

隨筆分類(31)

隨筆檔案(44)

Mining

最新隨筆

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

在Linux下實現對Microsoft Access Database(.mdb)查詢訪問
介紹了如何在Linux訪問MDB數據庫, 感覺非常有用:)

You will need the following:
Linux ( I’m running RedHat 9.0)
PHP
Apache
UnixODBC
MDBTools

INSTRUCTIONS
1) Download the UnixODBC RPM, found here. I installed unixODBC version 2.2.5.1.
rpm -ivh unixODBC-2-2.5-1.i386.rpm

2) Download the MDBTools rpm, found here. I installed mdbtools version 0.5.1. Read limitations!
rpm -ivh mdvtools-0.5-1.i386.rpm

3) Download the MDBTools ODBC driver rpm. Again I installed version 0.5-1.i386.rpm. Read limitations!
rpm -ivh mdbtools-odbc-0.5-1.i386.rpm

4) Add the mdbtools driver to your unixODBC config.
Create a new text file. NON-LINUX user: Beware do not do this on windows as you might get werid new lines, use vi.

[MDBToolsODBC]
Description = MDB Tools ODBC drivers
Driver = /usr/lib/libmdbodbc.so.0
Setup =
FileUsage = 1
CPTimeout =
CPReuse =


NOTE: The driver may be in /usr/local/lib/libmdbodbc.so.0. This happens if you build from source and use the make install command. The RPM puts it in /usr/lib.
Now install the driver using the file you created. This is called a template file.
odbcinst -i -d -f template.file

5) Define the datasource name. This is done in the /etc/odbc.ini file. So pull up this file in vi or another text editor and add the following lines.

[Dogs]
Description = Microsoft Access Database of Dogs
Driver = MDBToolsODBC
Database = /var/data/my_dog_db.mdb
Servername = localhost
UserName =
Password =
port = 5432


That’s it you should now have an odbc connection available. I will demonstrate using php, this assumes that your php is compiled with UnixODBC support, the version that ships with Redhat 9 does if yours does not then you can learn how here.

So I will write a quick php script to query my dogs database and print out the names and weights of my dogs.

$myDB = odbc_connect(”Dogs”,”",”");
$query = “select name, weight from dog_list”;
$result = odbc_exec($myDB, $query);
while (odbc_fetch_row($result)) {
print “Name = ” . odbc_result($result,”name”);
print “
Weight = ” . odbc_result($result,”weight”);
}


If you get a php error that says odbc_connect is not a function then see if you have php-odbc installed. Do rpm -qa php-odbc. If you see php-odbc returned then you have it if not install it., the rpm is available on the redhat discs.

Limitations:
- As of the time of writing this entry MDBTools did not support write access to the mdb files. This was fine for my purposes as I was reading data in and sticking it into a mysql database.
- There is a bug in MDBTools v0.5 which does not allow you to query tables or columns with an underscore. This was a bug I hit early on, but it has been fixed in new version 0.6 but that has not been released as of the time of writing this article. So I recompiled the 0.5 source code with the fix from the 0.6 CVS repository. I have bundled it into a 0.5 release and have the two rpms mentioned above here:
mdbtools-0.5-1.i386.rpm
mdbtools-odbc-0.5-1.i386.rpm

I would check the official download site before using my hacked version as I’m sure this bug will be fixed in 0.6 (plus rumor has write access will be present as well).

posted on 2006-10-09 11:19 泡泡牛 閱讀(5856) 評論(0)  編輯 收藏 引用 所屬分類: Linux

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲自拍偷拍色片视频| 在线观看欧美亚洲| 亚洲国产国产亚洲一二三| 欧美18av| 欧美88av| 久久久久久9| 欧美日韩国产在线播放网站| 亚洲综合另类| 亚洲啪啪91| 久久一日本道色综合久久| 99国产精品99久久久久久| 国产精品色婷婷| 国产精品福利在线| 国产精品你懂得| 国产欧美成人| 久久精品麻豆| 亚洲视频 欧洲视频| 亚洲精品一区二区三区樱花| 亚洲一区免费视频| 久久精品女人天堂| 久久国产精品高清| 久久久国产亚洲精品| 久久在线播放| 亚洲老板91色精品久久| 国产有码在线一区二区视频| 国产精品日韩专区| 在线播放国产一区中文字幕剧情欧美| 在线精品亚洲| 国产在线精品自拍| 亚洲精品韩国| 亚洲男人的天堂在线aⅴ视频| 欧美成人免费在线| 香蕉成人啪国产精品视频综合网| 久久―日本道色综合久久| 亚洲黄色在线视频| 99爱精品视频| 午夜精品www| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲国产婷婷香蕉久久久久久| 日韩小视频在线观看| 欧美日韩综合另类| 中文久久乱码一区二区| 亚洲美女视频| 久久久久久久一区| 欧美精品aa| 夜夜狂射影院欧美极品| 亚洲男人影院| 亚洲欧美国产毛片在线| 欧美一级欧美一级在线播放| 欧美华人在线视频| 亚洲精品国产精品久久清纯直播| 亚洲一区二区三区高清不卡| 欧美国产激情二区三区| 久久精品综合| 日韩网站在线观看| 免费在线观看一区二区| 亚洲欧洲日本专区| 亚洲欧洲日本mm| 国产精品大全| 亚洲电影免费在线| 国产精品一区一区三区| 久久久久久夜精品精品免费| 一区二区不卡在线视频 午夜欧美不卡在| 欧美视频导航| 亚洲视频自拍偷拍| 免费看的黄色欧美网站| 另类亚洲自拍| 国产欧美三级| 欧美在线观看一区二区三区| 久久精品视频导航| 国产精品高潮呻吟| 亚洲精品网站在线播放gif| 国产精品久久久久久久久久ktv| 欧美亚洲视频一区二区| 99视频在线观看一区三区| 欧美精品18+| 亚洲精品乱码久久久久久黑人| 野花国产精品入口| 亚洲图片欧洲图片日韩av| 老牛嫩草一区二区三区日本| 欧美日韩一级大片网址| 性8sex亚洲区入口| 国产欧美视频一区二区| 午夜综合激情| 欧美在线关看| 免费av成人在线| 一二美女精品欧洲| 欧美一级精品大片| 欧美电影资源| 亚洲理伦在线| 欧美体内she精视频在线观看| 亚洲丁香婷深爱综合| 亚洲美女性视频| 欧美二区乱c少妇| 久久精视频免费在线久久完整在线看| 久久一区二区三区av| 亚洲黄网站在线观看| 久久国产综合精品| 久久人91精品久久久久久不卡| 亚洲国产日韩在线一区模特| 欧美日韩一本到| 亚洲欧美日韩一区二区三区在线| 一本久道久久综合婷婷鲸鱼| 亚洲欧美日韩人成在线播放| 影音先锋亚洲电影| 久久久亚洲国产天美传媒修理工| 亚洲人成网站影音先锋播放| 欧美成人三级在线| 亚洲欧美成人网| 激情另类综合| 最新国产の精品合集bt伙计| 欧美自拍偷拍| 亚洲午夜视频在线| 制服诱惑一区二区| 久久久免费av| 亚洲欧洲日韩综合二区| 西瓜成人精品人成网站| 亚洲午夜在线| 亚洲日本成人| 99re6这里只有精品| 免费不卡在线视频| 国产日本欧美一区二区三区在线 | 亚洲一区精品电影| 老色鬼久久亚洲一区二区| 蜜桃av综合| 中文成人激情娱乐网| 最新成人av在线| 免费观看亚洲视频大全| 亚洲人体偷拍| 亚洲在线成人精品| 欧美精品偷拍| 国产精品亚洲激情| 在线观看亚洲专区| 欧美自拍丝袜亚洲| 久久九九国产精品| 夜色激情一区二区| 欧美r片在线| 国产日韩av一区二区| 欧美专区在线观看| 亚洲免费av网站| 欧美激情国产精品| 久久国产精品久久久久久电车| 亚洲综合精品四区| 欧美视频一区在线| 亚洲黄色尤物视频| 亚洲精品一区在线| 裸体一区二区三区| 亚洲黄色片网站| 久久久亚洲精品一区二区三区| 在线中文字幕一区| 另类酷文…触手系列精品集v1小说| 欧美亚洲一区二区三区| 欧美激情亚洲一区| 在线观看成人一级片| 欧美成人自拍| 欧美日韩激情小视频| 亚洲日韩欧美视频一区| 欧美 亚欧 日韩视频在线| 欧美jjzz| 亚洲国产精品小视频| 亚洲小说春色综合另类电影| 亚洲欧美韩国| 国产日韩av高清| 亚洲精品永久免费| 在线精品国产成人综合| 日韩一区二区精品视频| 国产综合在线视频| 亚洲一区二区三| 99国产精品99久久久久久| 亚洲一级黄色片| 亚洲先锋成人| 久久成人人人人精品欧| 91久久在线播放| 久久九九全国免费精品观看| 亚洲欧美日韩久久精品| 国产精品试看| 亚洲美女区一区| 久久久久久久久久久一区 | 一区二区三区视频在线 | 免费在线看成人av| 国产精品老牛| 亚洲电影在线播放| 伊大人香蕉综合8在线视| 一区二区三区导航| 亚洲大片免费看| 免播放器亚洲| 亚洲欧美日本在线| 久久综合给合| 欧美黑人一区二区三区| 国产精品乱码一区二区三区| 久久视频精品在线| 亚洲一区日韩在线| 亚洲欧美日韩国产综合在线| 亚洲大片在线观看| 欧美国产日韩一区| 99pao成人国产永久免费视频| 久久精品天堂| 亚洲午夜久久久久久久久电影网| 国产欧美日韩精品在线| 欧美怡红院视频|