1

I'm using MySQL database on my project and never had experience compiling vb.net application that includes database. So i want to know how to include or embed the MySQL database in making executable file of your application. Thanks!

2
  • 2
    Not an easy task... stackoverflow.com/questions/49378/…, do you have considered to use a different database? (Sql Server Compact, SQLite, LocalDB even Access for stand-alone installations) Commented Feb 15, 2015 at 10:34
  • 1
    @Steve What can you recommend that is good to be centralized database? Commented Feb 15, 2015 at 11:21

1 Answer 1

0

Just add it to the solution and load it:'By RightClicking on solution and click add/existing item'

Dim con As New SqlClient.SqlConnection("data source=" & Application.StartupPath & "\database.mdf")

If i hadn't solved your problem give me more information.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.