I've developed a program with a friend using Visual C# that connects to a MySQL database. This program works on one machine fine. We now want to be able to install the program on another machine but it connect to the database on the first machine but we're not sure how to do thins. Does anyone know any good tutorials where we can learn how to do this or are able to explain what we need to do?
Thanks in advance,
Karl
Sam HobbsPosted Apr 15, 2010, 2:00 PM
I am not sure whether you need to install "MySQL Connector Net" separately. My guess is that if you use Visual Studio to create a setup for your application, then it will install whatever your application needs. You can read about "deployment" in the documentattion; that is the term Microsoft usually uses for doing setups/installs of our software.
KarlPosted Apr 14, 2010, 6:39 AM
Basicly I was doing this...
MySqlConnection con = new MySqlConnection("Server=192.168.1.4:3306;Database=****;Uid=root;Pwd=****;");
When I should have been doing this...
MySqlConnection con = new MySqlConnection("Server=192.168.1.4;port=3306;Database=****;Uid=root;Pwd=****;");
Sucks to be a n00b.
P.S. Am I correct in thinking I need to install "MySQL Connector Net 6.2.2" on all the PC's I want to run my app? The PC's I'm currently using to test my program over the network already have it on.
Sam HobbsPosted Apr 13, 2010, 7:06 PM
You don't specify the details of "connects to a MySQL database" so it is difficult for anyone to provide specific answers. Are you using a bound data source? Are you using ADO?