The instructions on MySql's website are a little outdated, so here are a more complete set of instructions:

  • Make sure you've got mono installed already. (type mono --version to check if it's installed and to see your current version)
  • Download and extract the latest mysql-connector-net-(version) from (select Platform: .NET & Mono)
  • Locate MySql.Data.dll for .NET 4.5 and change to it's directory. (usually in /v4.5/)
  • Add the library to the GAC using gacutil /i MySql.Data.dll.
  • Open up the following file with a texteditor (mono-directory)/4.5/machine.config (usually /etc/mono/4.5/machine.config).
  • Locate the section <>.
  • Inside <DbProviderFactories>, add the following. If you have a MySql Connector/Net version other than, change the Version field accordingly.
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
                 description=".Net Framework Data Provider for MySQL"
                 type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />