Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The trick to solving this was:</p> <ol> <li>Add references to the <code>MySql.Data</code> and <code>MySql.Data.Entity</code> libraries of the correct version (6.7.4.0 for .NET 4.5, in my case) to the project.</li> <li>Edit <code>machine.config</code> with your editor run as administrator, and replace all occurences of MySQL version <code>6.6.5.0</code> by <code>6.7.4.0</code>.</li> </ol> <p>For the second step, note that there are multiple <code>machine.config</code> files, one for each framework version (3.0, 3.5, 4.0) and architecture (32-bit, 64-bit). Also note that the <code>machine.config</code> file for .NET 4.5 is in the .NET 4.0 folder. You can find the <code>machine.config</code> files in:</p> <blockquote> <p>C:\Windows\Microsoft.NET\Framework\\Config</p> </blockquote> <p>And:</p> <blockquote> <p>C:\Windows\Microsoft.NET\Framework64\\Config</p> </blockquote> <p>If there are no references to MySQL in the <code>machine.config</code> file, you might not have installed <a href="https://dev.mysql.com/downloads/windows/installer/" rel="noreferrer">MySQL for Visual Studio</a>. Either do that, or add the following to the <code>app.config</code> file of your project:</p> <pre><code>&lt;system.data&gt; &lt;DbProviderFactories&gt; &lt;add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /&gt; &lt;/DbProviderFactories&gt; &lt;/system.data&gt; </code></pre> <p>Note however, that when you both install <code>MySQL for Visual Studio</code> <em>and</em> add the above snippet to your <code>app.config</code> file, then you'll get this exception:</p> <blockquote> <p><strong>ConfigurationErrorsException</strong>: Column 'InvariantName' is constrained to be unique. Value 'MySql.Data.MySqlClient' is already present.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload