MYSQL access by an application

Asked

Viewed 93 times

0

I am creating an application in C# this, connects to a remote Mysql server, enabled for any IP to have access to my BD with a read-only user.

My doubt is the following: There is a way in Webservice it authenticates the user in a way that I do not need to leave my BD with remote access connected to all ips and only localhost?

(it accesses a page that if you log in returns a token something like)

  • You can post part of your code?

1 answer

0

From what I understand of your question, you want your Web Service to access the database, but do not want to leave this access available outside the server.

If so, your Web Service must be hosted within the same server as well, then the connection may be localhost.

Now if you want to let the remote access released only for this Web Service, I believe you would have to restrict the connection by IP and your Web Service have Fixed IP.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.