在安装Windows应用程序时如何安装MySql [英] How to installed MySql while installing windows application
问题描述
我通过.Net开发了一个Windows应用程序,并将MySQL用于数据库,
现在,我会将其提供给许多不同的客户.
但是在每个客户的每个地方,我都必须去在他们的机器上安装MySQL.
我该怎么办..
我该如何解决以上问题,
有什么规定可以在安装Windows应用程序时安装MySQL
不会引起客户注意并自动连接到MySQL
请帮助我
谢谢
I have developed one windows application by .Net and using MySQL for Database,
now i will give it to many different customers.
But everywhere at every customer i have to go and install MySQL on their machine.
What can i do for this..
how can i solve above problem,
Is there any kind of provision by which we can install MySQL while installing our windows application
without noticing to customer and also automatically connect to MySQL
please help me
Thanks
推荐答案
您只需要在服务器上安装MySql(如果您的应用程序是客户端/服务器),则客户端将连接到服务器或MySql引擎,因此基础MySql连接器DLL就足够了.
在服务器上,您可以安装MySql的MSI软件包,也可以将以下文件复制到服务器中
You only need to install MySql on your server (if your application is client/server) and your clients will connect to your server or MySql engine so the base MySql connector DLL will suffice.
On your server you can install the MSI package for MySql or you can copy the following files to your server
bin\mysqld.exe
Share\*.*
database\mysql\*.*
my.ini
并在命令行上运行以下命令以启动MySql服务器:
and run the following on the command line to start the MySql server :
start /min bin\mysqld.exe --standalone --console
或使用
安装服务
or install the service with
bin\mysqld.exe --install
这篇关于在安装Windows应用程序时如何安装MySql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!