ubuntu - 在 Ubuntu 12 上创建 dbase ODBC

标签 ubuntu odbc dbf dbase

首先,对不起我的英语。

我正在使用 PHP 和 dbase 数据库进行开发。通常我在 Windows 机器上这样做,但有时我必须在 Ubuntu 上开发。问题是,我找不到在 Ubuntu 上创建 odbc 数据源的方法,数据库。

那么,有什么建议吗?这可能吗?

我不想直接从 .dbf 文件中获取数据,我想连接到 odbc dsn。

感谢您的时间。

最佳答案

一直到底部manpage for xbase作者写道:

How is this DBD::XBase related to DBD::ODBC? DBD::XBase reads the dbf files directly, using the (included) XBase.pm module. So it will run on any platform with reasonable new perl. With DBD::ODBC, you need an ODBC server, or some program, that DBD::ODBC could talk to. Many proprietary software can serve as ODBC source for dbf files, it just doesn't seem to run on Un*x systems.



由于 dBase 在很大程度上是一个遗留系统,因此任何人都不太可能投入大量精力来编写或保持 odbc 驱动程序是最新的。

如果您现有的 dBase 代码的复杂性允许,也许您可​​以开始迁移到一些基于 SQL 的 DBMS。从 Microsoft SQL Server 到 SQLlite 的任何驱动程序都更容易找到。

如果您现有的代码库或时间表不允许迁移,那么通过 Web 服务进行连接可能会打开一个 Ubuntu 窗口。

关于ubuntu - 在 Ubuntu 12 上创建 dbase ODBC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16041915/

相关文章:

android - 是否可以在没有源代码的情况下将针对 Android 编译的 .so 转换为针对 ubuntu 的 .so?

linux - 服务器问题 - 我无法访问 php 文件

postgresql - 在 Windows 上设置 PostgreSQL ODBC

JAVA Dans DBF Library,从DBF文件中获取数据,byte[]转int

php - 使用 PHP 将记录写入 .dbf 文件?

c# - 在 .Net Winform 应用程序中使用 DBF 数据库

linux - CMake 获取 HOSTNAME 环境变量

ubuntu - 安装 cuda 8.0 后运行 CUDA 示例失败

java - Windows 是否默认安装了任何 JDBC 驱动程序?

tsql - 创建从 Microsoft SQL 服务器到 AS/400 的连接