简体   繁体   中英

Connecting PHP Web Service and ASP.NET website to same MySQL

I created a website using ASP.net and it's accessing MySQL through visual studio using IIS and there are some web services developed in PHP [tested using Apache Server] for the android application. Now, I am able to run both Asp.net website and android application using the same host by running both the servers on the same machine.

But how can I use the same MySQL database for both the purposes. How can I redirect the requests for both asp.net web services and php requests to the same database?

It depends, but generally, connection strings in Asp.Net are stored in a file called web.config, in the root folder of the application. I don't know if php have a central place to store connection strings, but in both cases you need to change that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM