Why I don’t recommanded Mysql.net connector anymore ?

UPDATED 6 JANUARY 2014

If you are installing.net connector in your PC then it’s registered the assembly in machine.config. Now if you want to run a single asp.net website you need to have Mysql.Data dll in your project no matter you use Mysql or any other kind of database connectivity.

After time by time you make new project, new version of mysql connector come (.net connector is opn-source and active in development). Soon you come back to make a modification on project that you made earlier now you need to upgrade the project. Nowadays if you are using Nuget package then nuget will take care of your mysql connector automatically.

When you install.net connector and add the reference then most of time it’s not matched with the version that is available on server. You can deploy the bin to solve this issue. I have written a post earlier to make fix the mysql issue MySql.Data.MySqlClient version mismatched

Here is the exception and most annoying problem that mysql connector make for developer.

Suppose for example I just create a website ( in webmatrix 3) put my index.cshtml and now see what it preview for me.

Capture

This means I need to add the mysql.Web even I don’t use any kind of database. I need to do every asp.net mvc project no matter they use mysql. it’s problematic when we use older.net  mysql connector in some of my project.

If you have trouble like this simply use nuget and say Bye bye to this trouble.

Smile

Related Post

Nuget is not installed or out of date

This article is part of the GWB Archives. Original Author: Anirudha

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.