Click here to Skip to main content
15,896,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone, If anyone can help me in my problem I would really appreciate that.

I have done a C# windows application with Mysql as a database. I have finished my application and made a setup project.
The problem is, I don't know how will I have my database available on the other computers? Should I install Mysql server on the computers?

I have installed my application on another computer, but it is showing "unknown database".

Thanks for your Support,
Posted

What's the problem? Database or RDBMS?

Database, if you need, is usually included in installation (you can include any file, as you know). RDBMS is more usually claimed as a prerequisite for your product. If you need to deploy it with your application, refer to MySql documentation.

Also, it would be useful to see here: http://bit.ly/Vo5KyZ[^].

—SA
 
Share this answer
 
This is what I normally do when I want to deploy a database involved application.

1. Make a setup that includes all my application, MySQL setup, MySQL script to create database
2. when someone run the setup install the MySQL setup first and configure the user Id and pwd and other setting in MySQL-UI
3. Run the Utility Application that I developed which accepts the database server, Uid and password
4. using MySQL.Cmd execute the script which creates the database,table, stored procedure etc
5. Copy all other exes and configuration files to the local drive

thats all your done!!
 
Share this answer
 
Thanks Guys,

Jibesh, I actually understood the concept from your solution. I have used Mysql Workbench through which I exported my Database. I installed Mysql on the other computer and imported the Database, and it worked!

Thanks again...!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900