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
Post a Comment