I have a desktop application on Winforms, the application works locally on Wampserver, adds and retrieves data from the Mysql database, the connection string looks like this
MySqlConnection con = new MySqlConnection("server = 192.130.1.1; UserId = admin; Password = 12345; database = employee");
the application works in this subnet, and so I need the application to work in such subnets, 192.130.30.1; 192.130.5.1 how to do it, no idea..please, help me!
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
fixed, it turns out to be very simple
MySqlConnection conn = new MySqlConnection("server = 192.130.1.1,192.168.1.199,192.1 ; UserId = admin; Password = 12345; database = employee");
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0