.Net web项目怎么配置连接本地数据库
妈咿呀嘿 2017-10-22 01:14:54 <?xml version="1.0" encoding="utf-8"?>
<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="Database" connectionString="Data Source=112.74.84.227\SQLEXPRESS,1433;User ID=sa;Password=yulegeyan;Persist Security Info=False;Initial Catalog=bds230025673_db;Connect Timeout=40;" providerName="System.Data.SqlClient" />
</connectionStrings>
<dataConfiguration defaultDatabase="Database" />
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<httpModules>
<add name="authModule" type="Prophecy.Web.Admin.AuthHttpModule,CAPS.Portal" />
</httpModules>
</system.web>
<system.webServer>
<modules>
<!--<remove name="FormsAuthentication" />-->
<add name="authModule" type="Prophecy.Web.Admin.AuthHttpModule,Prophecy.Web.Admin" preCondition="integratedMode" />
</modules>
<handlers>
<add name="ajaxMvcHandler" path="*.jx" verb="*" type="Lib.Web.Mvc.JxMvcHttpHandler,LibCore" preCondition="integratedMode" />
<add name="ajaxMvcHandlerWatch" path="*.jxhtml" verb="*" type="Lib.Web.Mvc.JxMvcHttpHandler,LibCore" preCondition="integratedMode" />
</handlers>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
<appSettings>
<add key="Configpath" value="~/site.config" />
<add key="ControllerAssemblies" value="Prophecy.AjaxHandler" />
<add key="SysAdmin" value="9C0088AD-A2BC-457C-809E-82465E10D5B2" />
</appSettings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
之前没接触过.Net的Web项目
想配置到本地MySQL数据上,怎么做?