除了 ms-access 之外,我还可以使用哪些其他程序连接到 odbc 数据库

发布于 2024-08-13 17:28:31 字数 433 浏览 1 评论 0原文

除了 ms-access 之外,我还可以使用哪些其他程序连接到 odbc 数据库。 我说的是可以运行 sql 查询的程序。我不想使用 ms-access 因为 access 文件的大小已变为 1.5 GB 。

为什么我的数据库是 1.5 GB?

我正在使用 access 连接到 odbc-mysql 数据库。这是相当巨大的。 在我的访问数据库中,我有几个查询使用 odbc-mysql 数据库在访问数据库中创建表,这就是大小巨大的原因。但 1.5 GB 对我来说仍然有点太多了,因为整个数据库的 sql 转储不应超过 200 MB。与其他数据库相比,访问文件的大小可能很大。

现在我不想再使用访问权限了。但我想使用ms-access数据库中现有的sql查询来操作odbc-mysql数据库。我还希望修改创建表的查询,以便它们在 mysql 本身而不是在(访问)中创建数据库。所以我正在寻找这个替代程序。

what are the various other programs using which i can connect to odbc database besides ms-access.
i'm talking about programs in which i can run sql queries. i dont want to use ms-access because the size of the access file has become 1.5 gb .

why my database is 1.5 gb ?

i am using access to connect to odbc - mysql database . which is quite huge.
in my access database i have several queries that create tables in the access database using odbc - mysql database thats why the size is huge . but 1.5 gb is still a bit too much for me to understand cause the sql dump of the whole database should not be more than 200 mb. maybe acess files are large in size compared to other databases.

now i dont want to use access anymore . but i want to use the existing sql queries in the ms-access database to operate the odbc-mysql database. also i want the queries that create table be modified so that that they create the database in mysql itself and not in ( access ) . so i am looking for this alternate program.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

深空失忆 2024-08-20 17:28:31

关于 Access 前端的大小:如果您还没有这样做,请尝试 压缩 Access 数据库文件。也许巨大的大小只是在数据库中创建和删除的临时表的“剩余”。

关于替代方案:

  • 您可以继续使用 Access 作为前端,而只是在 mysql 中创建表(使用所谓的“传递查询”来输入 SQL 语句(CREATE TABLE、INSERT INTO,...),这些语句是直接在远程 ODBC 数据源上执行。

  • 如果您需要其他程序,答案取决于您是否想要执行“数据库管理”(手动输入 SQL 语句并移动数据)或“。在后一种情况下,您可以使用目前 Windows 上可用的几乎所有开发平台;要找到一个没有 ODBC 客户端支持的平台并不容易。在前一种情况下,您可能会想在 http://serverfault.com 上询问。

About the size of your Access frontend: If you haven't done so already, try compacting the Access database file. Maybe the huge size is just a "leftover" from the temporary tables that were created and removed from the DB.

About alternatives:

  • You can keep using Access as the frontend and just create your tables in mysql instead (use so-called "pass-through queries" to enter SQL statements (CREATE TABLE, INSERT INTO, ...) that are executed directly on the remote ODBC data source.

  • If you want other programs, the answer depends on whether you want to do "database administration" (manually enter SQL statements and move around data) or "software development". In the latter case, you can use almost any development platform available on Windows at the moment; it won't be easy finding one without ODBC client support. In the former case, you might want to ask on http://serverfault.com.

怀里藏娇 2024-08-20 17:28:31

点击

开始->程序->管理
工具->数据源(ODBC)

单击添加。

该列表显示您可以使用 ODBC 连接到哪些应用程序。

Click

Start->Programs->Administrative
Tools->Data Sources (ODBC)

Click Add.

The list shows which apps you can connect to using ODBC.

Hello爱情风 2024-08-20 17:28:31

如果你想查看MySQL数据库,我建议你连接MySQL自己的协议,而不是ODBC。我可以推荐 SQLyog,它是一个很好的、易于使用的查看 MySQL 数据库的工具。

If you want to view a MySQL database, I suggest you connect MySQL's own protocol, rather than ODBC. I can suggest SQLyog, as a good, easy to use tool for viewing a MySQL database.

梦断已成空 2024-08-20 17:28:31

沿着 GUI 工具的路线,您可以使用在 MySQL 数据之上编写 SQL 查询,尝试查看 MySQL 查询浏览器(MySQL GUI 工具的一部分)或来自 Webyog 的 SQLyog。这些工具中的任何一个都允许您正确的 SQL 查询,并在数据网格中查看结果。

您还没有提到您正在对所有这些数据执行什么操作,因此如果您仅使用access DB作为前端客户端来查看来自MySQL的数据,或者如果您在Access中内置了一些应用程序逻辑,则很难破译。然而,无论哪种情况,您确实想考虑使用直接使用 MySQL 的 C api 而不是 ODBC 的工具。 C api(我上面提到的这两个工具)将提高通过 ODBC 运行的查询的性能,同时通过不需要服务器执行 ODBC 转换例程来减少网络和服务器负载。

由于这篇文章被标记为 Java,因此您可能希望研究将已保存到 Java 应用程序中的查询滚动并使用 JDBC 连接到 MySQL 数据。 JDBC 可能不使用 ODBC 作为连接协议,但它可以让您获取保存在数据库中的数据。当然,这种方法的缺点是您必须推出自己的应用程序来查看 MySQL 中已有的数据,但代价是您可以最大程度地控制可以使用该数据执行的操作以编程方式。

Along the lines of GUI tools you can use to write SQL queries on top of MySQL data try looking into either the MySQL Query Browser, which is part of the MySQL GUI Tools, or SQLyog from Webyog. Either of these tools will allow you to right SQL queries, and review the results in a data-grid.

You haven't mentioned what you are doing with all this data, so it's tough to decipher if you are using the access DB as only a front-end client to view the data from MySQL, or if you have some application logic built into Access. However in either case, you really want to look into using a tool that uses MySQL's C api directly, rather than ODBC. The C api, which both of the tools I mentioned above will improve the performance of the queries you're running over ODBC, while at the same time reduce network and server load by not requiring the server to go through ODBC translation routines.

Since this post was tagged as Java, you might want to look into rolling the queries you have saved into a Java application and using JDBC to connect to your MySQL data. JDBC may not use ODBC as it's connection protocol but it will let you get to the data you have saved in your database. Of course the downside to this approach is that you'll have to roll your own application to look at the data you already have in MySQL, but the trade-off is you'll have the most control over what you can do with that data programmatically.

明明#如月 2024-08-20 17:28:31

SQL Server 是一种潜在的候选者。 链接服务器配置使 SQL Server 能够针对 OLE DB 数据执行命令远程服务器上的源例如使用ODBC 的OLE DB 提供程序。

SQL Server is one potential candidate. A linked server configuration enables SQL Server to execute commands against OLE DB data sources on remote servers e.g. use the OLE DB provider for ODBC.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文