在笔式驱动器中安装软件和存储数据库。 [英] Install software and store database in pen drive.
问题描述
我正在使用visual studio 2010 c#,我开发一个Windows应用程序和数据库连接我使用MYSQL Server,我使用MYSQL管理工作室从应用程序外部管理该数据库。
现在我想将我的应用程序设置和连接数据库存储在一个USB驱动器中。
当我在USB驱动器中打开应用程序时,它连接到存储在Drive中的数据库以及我用数据库完成的任何事务它也存储在同一位置...
所以任何人都知道这个请帮助我,如果可能的话,请给我一步一步的解决方案,我能理解并且表现良好。
我尝试了什么:
i尝试在pendrive中安装mysql,但它不是输出
I am working with visual studio 2010 c# , I Develop one windows application and for database connectivity i use MYSQL Server , I manage that database using MYSQL management studio from outside the application.
Now I want to stored my application setup and connected database both in one USB Drive.
When ever i open the application in USB Drive it connect the database which is stored in Drive and what ever transaction i done with the database it also stored on same location...
So Any One know about this Please help me, And if possible than give me step by step solution which i can understand and perform well.
What I have tried:
i try install mysql in pendrive,but it is not give output
推荐答案
MySql 如果您复制所有二进制文件和数据库目录(无需安装)并运行mysql,则code>有效:
MySql
works if you copy all the binary files and the database directory (no install required) and run mysql as :
bin\mysqld.exe --standalone --console
显然你必须在应用程序之前运行引擎并制作确保它随后在USB驱动器上正确关闭。
一般我不推荐这个,因为它很容易破坏你的数据,拥有一个基于文件的数据库引擎比如<$ c $更可行c> sqlite 或许多其他人。
这篇关于在笔式驱动器中安装软件和存储数据库。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!