Re: MySql Connector/Net 5.1.6 backward compatiblity
Posted by: jeraldes john
Date: June 16, 2009 01:23PM

First, go here and download your preference of driver:

http://dev.mysql.com/downloads/#connector-net

Then either add the project to VS and/or add a reference to the mysql.data project or dll.

Next, in the web.config, delete the areas highlighted in red.

<system.data>
<DbProviderFactories>
<clear />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
description=".Net Framework Data Provider for MySQL"
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data ,

***************delete this line****************
Version=5.1.6.0, Culture=neutral,
***************delete this line****************




PublicKeyToken=c5687fc88969c44d " />
</DbProviderFactories>
</system.data>
<system.web>
<compilation debug="true">
<assemblies>



***************delete this line****************
<add assembly="MySql.Data, Version=5.1.6.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
***************delete this line****************


<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>

Options: ReplyQuote


Subject
Written By
Posted
Re: MySql Connector/Net 5.1.6 backward compatiblity
June 16, 2009 01:23PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.