Delphi 2010和Dbexpress部署 [英] Delphi 2010 and Dbexpress deploy
问题描述
如何在地球上部署使用dbexpress连接到远程mysql的Delphi 2009/2010应用程序?要包括哪些文件?谢谢
How on Earth to deploy a Delphi 2009 /2010 app that connects to a remote mysql using dbexpress? What files to include? Thanks
推荐答案
您需要用于MySQL的dbexpress驱动程序(dbxmys.dll)和作为单个DLL(libmySQL)的MySQL客户端库。 dll)。
You need dbexpress driver for MySQL (dbxmys.dll), and MySQL client library which is a single DLL (libmySQL.dll).
在Delphi 2009中,有一个错误(我不知道是否被任何更新修复),这使您部署dbxdrivers.ini和dbxconnections.ini文件与你的应用程序;否则您将在目标机器上收到运行时错误。有一些解决方法就像在代码中创建一个内存连接管理器,这在Marco Cantu的Delphi 2009手册中提到。
In Delphi 2009, there is a bug (I'm not sure if it is fixed by any update), which makes you deploy dbxdrivers.ini and dbxconnections.ini files with your application too; otherwise you will get a runtime error on the target machine. There are a few workarounds for it like creating an in-memory connection manager in your code, which was mentioned in Marco Cantu's Delphi 2009 Handbook.
这篇关于Delphi 2010和Dbexpress部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!