Click here to Skip to main content
16,016,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have two user, the admin and the student user. Now my question is, how to retrieve the data from database to my server computer to another computer? I really need to know this one, thanks.

What I have tried:

I tried to include the port and server or ip of the server but it didnt work, please help me.
Posted
Updated 25-Feb-16 20:31pm

Answer for your question is connection string, with the help of connection string you can connection to any database in your network
look at below connection string for MYSQL
C#
Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;


Specifying TCP port
C#
Server=myServerAddress;Port=1234;Database=myDataBase;Uid=myUsername;
Pwd=myPassword;
 
Share this answer
 
We can't tell you - but if they are both on the same LAN, or the MySql server is accessible via the internet, it's just a case of getting your connection string right.
Start here: ConnectionStrings.com - Forgot that connection string? Get it here![^] and see what you can work out. We can't help you here - each string is specific to you installation, and to the DB users you will be using, and we have no idea where your server is, much less the ability to connect to it!
 
Share this answer
 

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