Data Source name of mySql?

gladia31

New Member
Messages
2
Reaction score
0
Points
0
Hello to all. I'm new in developing website.
My main question is i dont know the Data Soruce name for C#'s mySqlConnection. I want to Manipulate my database from cpanel to my C# application. i Hope some can provide me a short tutorial. Thank you in advance.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
If you are using a Free Hosting account, remote MySQL access is not allowed. MySQL can only be accessed via your web application using the hostname "localhost". If you need external access, you are going to have to create an API (a web service) in PHP on your web site. If you create a SOAP web service and a corresponding WSDL file, you should be able to incorporate it into your C# app easily, but you can also use raw HTTP requests using either POST or GET from your C# app.
 
Top