Connect to web MySQL from c# desktop program? -


i've got webserver running quite standard apache/php/mysql , want connect mysql database desktop application written in c#/wpf.

first, how can connect? need special sqlconnection library?

second, how safe this? special need think security since database in web , not local?

you connect mysql if allow connections (to mysql) ip addresses desktop (wpf) clients running from. create users , allow them connect directly database. it's not unsafe. mysql repository become harder maintain (you have lots of users, logging different subnets, etc.).

i recommend create webservice or restful api in apache/php/mysql server, , connect service c#.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -