Search code examples
c#phpmysqlwinformstunnel

Connect to MySQL via PHP script tunnel


Here's the question, I need to connect to a remote MySQL database from my C# Application, problem is the MySQL instance will block all access to all IP's apart from localhost, this can not be changed as its too much of a security issue.

The question is, is it possible to connect via a tunnel instead to a php script hosted on the server, this would then act as the mysql connection.

Any ideas and suggestions?


Solution

  • I ended up with going for an SSH port tunnel and achieving what I needed to do that way.