if I have a C# application which reads from a local MYSQL database, and when I compiled that C# application, I want to deploy that compiled application into another machine or notebook. Does that mean that I have to re-create the same database (with same username and same password) into the other notebook? It is very cumbersome if I have to deploy that application into multiple machines. What are the solutions?
I read somewhere about server database, but still not sure how to implement it. Does that mean that those other machines (clients) which the application is being deployed read from the server database? Is that the only solution? What are other better suggested alternatives?
thanks.

5 answers
hey, actually MYSQL database is already a server database. All you have to do is to connect the ip address of the server from the other pc (client) and you must have a connection to the server database ofcourse.
answered 5 months ago by:
1351
hi Muster, does that mean that instead of server=localhost, I would have to have this:
server=IP_address_server, from the client PC?
thanks.
answered 5 months ago by:
476
1351
yes the server ip address should be placed there.
Try using an Alias to point to your SQL Server PC.
The application connection string then contains the alias name.
server=DATABASE_ALIAS
where DATABASE_ALIAS is the database alias you name you define in the config tool.
The benefit of this is that you can change your server location by simply adjusting the alias definition on the client pc rather than changing the app itself.
TCP-IP alias's can be set up using Start->Run->Cliconfg.exe
answered 5 months ago by:
245
I am using MySQL database. My understanding is that Clionfg.exe is SQL Server Client Network Utility application. I doubt it will work with MySQL database.
answered 5 months ago by:
476
In a C# compiled application, which read values from the MySQL server database, is it possible to read in those updated values from the database? What I mean is that if the values change on the server database, I would want those values to be updated on the client, without re-compiling the application again. What is the better way to achieve this? I would not want to use a Timer tick to do its update.
thanks.
answered 5 months ago by:
476