如何在c#asp.net中动态mysql数据库连接字符串

时间:2018-05-04 14:05:48

标签: mysql asp.net

如何设置动态设置的connectionStrings,例如存储变量?

ex:string id=root;password=sample;

<connectionStrings> 
    <add name="Myconnection" connectionString="server=localhost;user id=root;password=sample;database=sample" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>

0 个答案:

没有答案