通过数据源连接 MySQL数据库在Web.config怎样配置
展开全部
<connectionStrings>
<add name="TestConnectionString" connectionString="Provider=Microsoft.Jet.Oledb.4.0;Server=(local);Database=test;uid=root;pwd=123456;port=3306" providerName="System.Data.OleDb"/>
</connectionStrings>
...
<add name="MySql" connectionString="server=10.0.5.29;user id=root; password=wrs123; database=ultrax; pooling=false;charset=gb2312;allow zero datetime=true" />
<add name="TestConnectionString" connectionString="Provider=Microsoft.Jet.Oledb.4.0;Server=(local);Database=test;uid=root;pwd=123456;port=3306" providerName="System.Data.OleDb"/>
</connectionStrings>
...
<add name="MySql" connectionString="server=10.0.5.29;user id=root; password=wrs123; database=ultrax; pooling=false;charset=gb2312;allow zero datetime=true" />
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询