according to this post, I understood how to generate connection strings and make it easier to insert server data into the app.config file.
C# Mysql connection in txt file config
however, I still face problems. After publishing the project, using the files that are generated with install the basic in the machine which I developed, in others I install but when reading the information of the database even changing in the file NameOfProgram.exe.deploy still loads the server that used for tests . How can I change the server data after publishing the project? App.config
My currently used files:
<configuration>
<connectionStrings>
<add name="MyDatabaseCS" connectionString="datasource=mysqlip;port=3306;database=winprog;username=root;password=root"/>
</connectionStrings>
</configuration>
Call string ...:
var connectionString = ConfigurationManager.ConnectionStrings["MyDatabaseCS"].ConnectionString;
How to change server, ip, port, user, password information no app.config or nameOFprogram.exe.deploy? ?