Click here to Skip to main content
15,896,153 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:

Create A vb.net window application with MYSQL data base but data store on network on server system how is it possible ? i already design application with sql but not establish connection between on network with database
Posted
Comments
Kornfeld Eliyahu Peter 1-Dec-15 8:02am    
By the correct connection string...
Member 12178566 1-Dec-15 8:20am    
Dear Sir,

Have any Examples

1 solution

In order to do that you need to have a MySql Server instance running on the server PC - which needs to be on the same LAN as your clients, pretty much. Your client apps then connect to the server via the connection string in the MySqlConnection object you create in your code and the server handles all the DB for you.

Try setting up a connection in VS with the Server Explorer pane:
1) Open Server Explorer.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource, and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file.
 
Share this answer
 
Comments
Member 12178566 1-Dec-15 8:21am    
Dear Sir,

Have any Examples
Member 12178566 1-Dec-15 8:24am    
which mysql server software i need to install in my server. i have MySQL Community Server 5.7.9

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900