Database connection in umbraco

强颜欢笑 提交于 2019-12-12 06:46:01

问题


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


回答1:


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>


来源:https://stackoverflow.com/questions/38218675/database-connection-in-umbraco

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!