如何在服务器上使用MySql数据库托管asp.net网站 [英] how to hosting a asp.net website with MySql Database on server

查看:82
本文介绍了如何在服务器上使用MySql数据库托管asp.net网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专业人士
我正在建立一个与mysql数据库连接的网站.
现在我的项目完成了,现在我想将其托管在服务器上,我在服务器上上传了许多网站,但是所有这些都没有数据库,而我的第一个数据库包括需要托管的网站..所以如何上传它可以帮助运行ma项目正确地
请给我适当的建议,对我的项目有帮助!!!!

Hi Professionals
i am making a website which is connected with a mysql database.
now my project is complete now i want to host it on server i uploaded many websites on server but that all without database its my 1st database included website that need to host....so how to upload it that can help to run ma project properly
please give me proper suggestion that can help me for my project!!!!

推荐答案

Hello Shubh,

当我第一次使用mysql进行.net项目时,我也遇到了类似的问题,因此我发现了这些文章,因此对您非常有帮助.请点击以下链接:

http://www.codeguru.com/csharp/.net/net_data/article.php/c19493/A-StepbyStep-Guide-To-Using-MySQL-with-ASPNET--Part-2.htm [
Hello Shubh,

I also faced with a similar issue when I first did a .net project with mysql and I found these articles so its very helpful for you. Follow these links :

http://www.codeguru.com/csharp/.net/net_data/article.php/c19407/A-StepbyStep-Guide-To-Using-MySQL-with-ASPNET--Part-1.htm[^]

http://www.codeguru.com/csharp/.net/net_data/article.php/c19493/A-StepbyStep-Guide-To-Using-MySQL-with-ASPNET--Part-2.htm[^]


Shubh,

如果已将连接字符串保存到web.config文件中,则在IIS服务器上部署具有数据库和不具有数据库的网站没有什么区别.

您只需要更新配置文件即可更改连接字符串.

请参考以下链接在IIS7.0上部署网站

在IIS 7.0上部署ASP.NET网站 [ ^ ]
Hi Shubh,

There is no difference of deploying website with database and without database on the IIS server if you have saved connection string into web.config file.

You just need to update config file to change the connection string.

Please refer the below link to deploy website on IIS7.0

Deploying ASP.NET Websites on IIS 7.0 [^]


这篇关于如何在服务器上使用MySql数据库托管asp.net网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆