Solved

C# read data from mysql that is not localhost

Posted on 2013-06-05
5
430 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

732 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