umbraco 中的数据库连接 [英] Database connection in umbraco
本文介绍了umbraco 中的数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在安装umbraco并安装成功,但忘记配置数据库,现在我不知道如何在哪个文件中连接数据库.有人可以详细解释一下数据库连接的整个过程
I was installing umbraco and installed successfully, but forgot to configure with database and now i don't know how to connect with database in which file. can somebody explain me whole process of database connection with details
推荐答案
它在你的 web.config 中,查看 connectionStrings 默认使用\App_Data\Umbraco.sdf
It is in your web.config, see the connectionStrings default it use the \App_Data\Umbraco.sdf
<connectionStrings>
<remove name="umbracoDbDSN" />
<add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;" providerName="System.Data.SqlServerCe.4.0" />
<!-- Important: If you're upgrading Umbraco, do not clear the connection string / provider name during your web.config merge. -->
</connectionStrings>
这篇关于umbraco 中的数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文