Solved

C# read data from mysql that is not localhost

Posted on 2013-06-05
5
426 Views
Last Modified: 2013-06-12
what is the best way to use c# to read data from website (data base is mysql) the host only allow to add mysql user from localhost

read only not write
0
Comment
Question by:teera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 110

Assisted Solution

by:Ray Paseur
Ray Paseur earned 500 total points
ID: 39222734
Create a web service on the server that has the data base.   Use a RESTful design to access the data.
0
 
LVL 12

Expert Comment

by:adrian_brooks
ID: 39223160
I don't mean to be rude, but since when does C# topics end up in a PHP category?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39223267
" when does C# topics end up in a PHP category? "

When they put it there.  Doesn't mean it was a good idea...  but we'll see.  Since the host is not allowing external access directly to the database, the asker may end up using Ray's suggestion for a web service based on PHP.
0
 

Author Comment

by:teera
ID: 39224377
Hi experts

I can use php on that server so if I use php to generate some thing that c# can read but I am not sure what I should do
0
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39224406
PHP can be used to produce any kind of browser output, including plain text, HTML, JSON, XML, etc.  So the output from the server will be usable in a RESTful interface.

Is your question about how do I read from a web service or how do I create a web service that others can read ??
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get this library to work load? 8 37
Make check boxes work 8 41
xml with php question 5 30
How do I Check for duplicate entries in mysql 15 22
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question