Click here to Skip to main content
15,888,610 members
Articles / Database Development / MySQL

MySQL connector for Microsoft Enterprise Library (January 2005 version)

Rate me:
Please Sign up or sign in to vote.
3.00/5 (7 votes)
9 Jun 20052 min read 135K   2.2K   31  
Adds support for MySQL databases in the Data Access Application Block.
<?xml version="1.0" encoding="utf-8"?>
<dataConfiguration>
  <xmlSerializerSection type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data">
    <enterpriseLibrary.databaseSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" defaultInstance="DataAccessMySql" xmlns="http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/data">
      <databaseTypes>
        <databaseType name="MySql" type="Microsoft.Practices.EnterpriseLibrary.Data.MySql.MySqlDatabase, Microsoft.Practices.EnterpriseLibrary.Data" />
      </databaseTypes>
      <instances>
        <instance name="DataAccessMySql" type="MySql" connectionString="LocalMySql" />
      </instances>
      <connectionStrings>
        <connectionString name="LocalMySql">
          <parameters>
            <parameter name="server" value="localhost" isSensitive="false" />
            <parameter name="database" value="yourDbName" isSensitive="false" />
            <parameter name="userName" value="yourUserName" isSensitive="false" />
            <parameter name="password" value="yourPassword" isSensitive="false" />
          </parameters>
        </connectionString>
      </connectionStrings>
    </enterpriseLibrary.databaseSettings>
  </xmlSerializerSection>
</dataConfiguration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Architect
France France
Benjamin designs high-end software solutions in C++ and C# always using the latest technologies available, if the customer agrees !

Comments and Discussions