ASP.NET网站部署

发布于 2024-12-13 23:22:56 字数 222 浏览 0 评论 0原文

我是 Web 开发新手,一直在 Visual Studio 中构建我的网站。我建立了一个数据库,存储在 App_Data 文件夹中。数据库是开放的(没有密码),但是当网站准备好并且当我将其发布到服务器上时,数据库会发生什么。我将如何添加密码。它是否仍存储在项目内,或者我可以将其移动到托管服务器的数据库文件夹中吗?我可能会问一些愚蠢的问题,但它们困扰着我。

*请耐心听我说,我有诵读困难,在做正常的事情上有困难。

I am new to web development and have been building my websites in Visual Studio. I have built a database which is stored in App_Data folder. The database is open(no password) but when the website will be ready and when I will publish it onto a server then what will happen to the databases. How will I add the password. Will it remain stored inside the project or can I move it to the hosting server's database folder's. I maybe be asking silly questions but they are bothering me.

*Please bear with me, I am dyslexic and have problems doing normal things.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

屋顶上的小猫咪 2024-12-20 23:22:56

没有问题是愚蠢的,这个网站上的每个人都曾经是初学者,我确信他们都在同一条船上。

在部署数据库时,每个托管公司的设置都会有所不同,并且该公司的每个托管计划很可能都会有所不同。我的托管公司第一次帮助了我,这实际上比让我的第一个数据库在我自己的计算机上运行要容易得多,但更耗时。

我猜你正在本地使用 SQL Server Express,如果是这样,你可能会找到你的托管公司,抱歉,我在本篇文章中说了很多(托管公司)不支持 Express。这意味着您将不得不选择它的老大哥,但大多数计划都会在最便宜的计划中至少提供一项。

尽管如此,您的数据库很可能不会进入您的 App_Data 文件夹,我建议您联系您的托管公司并向他们询问该过程。但要记住的一件事是,确保您喜欢您的托管公司,并且它们不会消失,因为一旦您完成了所有设置并将数据放入其中的过程,您就需要移动它!!!

如此耗时且轻松愉快,

干杯,

迈克。

No questions are silly everyone on this site was a beginner once and I’m sure they have all in the same boat.

When it comes to deploying a database each hosting company will be set up differently and most likely each hosting plan at that company will be different. My hosting company helped me out the first time and it was actually much easier than getting my first database to work on my own computer, but a lot more time consuming.

I’m guessing you are using SQL Server Express locally, if so you will probably find your hosting company, sorry I’ve said (Hosting Company) a lot in this spiel, doesn’t support Express. This will mean you will have to go with its big brother, but most plans will have at least one available on the cheapest plan.

All that said, your database will most likely not go in you App_Data folder, I suggest contacting you hosting company and ask them about the process. One thing to keep in mind though is make sure you like you hosting company and they are not going to go away, because once you go through the process of setting it all up and getting your data into it, you want to ever have to move it!!!

So time consuming and pleasantly easy,

Cheers,

Mike.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文