0

I have made a C# application MySql Database attached I am going to use the Application on a different Computer. According to my Logic. The Mysql database is running on the localhost server of my first PC and I think that the localhost of the other PC will be different. So,My application Won't connect to the server - It's my Idea which may be wrong.

I have the following Questions :-

1.

How do I make a Mysql local server that will even work on another PC.

2.

Do I have to Install MySql on other PC ? If yes How can i include mysql setup in the Setup Wizard of my app.

3.

Do I have to make changes In the Code (Connection or anything).

Please Give any extra suggestion if you have about this.

1 Answer 1

1
  • You do not need to install mySQL on the computer that will have the app. that defeats the purpose of having a SQL Server

  • You will only need to change the connection string so instead of connecting to Localhost or 127.0.0.1 you will use the ip address of the machine that has the server installed. Connection Strings

  • I suggest you do some reading about networking, design patterns, and SQL or you risk building a very insecure application.
Sign up to request clarification or add additional context in comments.

1 Comment

In the second point you said " you will use the ip address of the machine that has the server installed" does it mean my first computer on which I make the app??

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.