title: Specified key was too long; max key length is 767 bytes Mysql error in Entity Framework 6
body: <p>I have start working on Asp.net Mvc-5 application using visual studio 2012. So I have downloaded Entity Framework-6 and MySQL 6.8.3.0 from nuget. When I tried to create database by using db Context command</p>
  
  <pre><code>dbContext.Database.CreateIfNotExists();
  </code></pre>
  
  <p>This exception thrown.</p>
  
  <blockquote>
    <p>Specified key was too long; max key length is 767 bytes</p>
  </blockquote>
  
  <p>I have done search on it, but cannot find any solution. One thing that I got during my search, this can be Unicode characters problem. I don't know how to deal with this issue.</p>
  
  <p><strong>Updated</strong></p>
  
  <p>I am using following configuration</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
    &lt;/configSections&gt;
    &lt;entityFramework&gt;
      &lt;providers&gt;
        &lt;provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" /&gt;
      &lt;/providers&gt;
    &lt;/entityFramework&gt;
    &lt;system.data&gt;
      &lt;DbProviderFactories&gt;
        &lt;remove invariant="MySql.Data.MySqlClient" /&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.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /&gt;
      &lt;/DbProviderFactories&gt;
    &lt;/system.data&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>My DB Context class. I have removed all the models just keep left one model</p>
  
  <pre><code>public class MyContext : DbContext
  {
      public MyContext()
          : base("myconn")
      {
          this.Configuration.ValidateOnSaveEnabled = false;
      }
  
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          modelBuilder.Conventions.Remove&lt;System.Data.Entity.ModelConfiguration.Conventions.PluralizingTableNameConvention&gt;();
          base.OnModelCreating(modelBuilder);
      }
  
      public DbSet&lt;ModelOne&gt; ModelOne { get; set; }
  
  }
  </code></pre>
  
  <p>Model class</p>
  
  <pre><code>public class  ModelOne
  {
          [Key]
          public int CreatedId { get; set; }
          public Nullable&lt;int&gt; UserId { get; set; }
          public Nullable&lt;DateTime&gt; Date { get; set; }
          public string Description { get; set; }
    }
  </code></pre>
  
  <p>Can anyone help me with this issue?</p>
  
  <p>Thank you.</p>