title: Configure Mysql 5.7 with Travis CI
body: <p>I can't run my tests on Travis CI because i can't find a way to setup mysql 5.7 in container. </p>
  
  <p>I've found this gist <a href="https://gist.github.com/BenMorel/d981f25ead0926a0cb6d" rel="noreferrer">https://gist.github.com/BenMorel/d981f25ead0926a0cb6d</a> explaining a configuration method for <code>travis.yml</code>. Here are the commands :</p>
  
  <pre class="lang-bash prettyprint-override"><code>sudo apt-get remove --purge "^mysql.*"
  sudo apt-get autoremove
  sudo apt-get autoclean
  sudo rm -rf /var/lib/mysql
  sudo rm -rf /var/log/mysql
  echo mysql-apt-config mysql-apt-config/enable-repo select mysql-5.7-dmr | sudo debconf-set-selections
  wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
  sudo dpkg --install mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
  sudo apt-get update -q
  sudo apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" mysql-server
  </code></pre>
  
  <p>right after that, I'm doing :</p>
  
  <pre class="lang-bash prettyprint-override"><code>$ mysql -uroot &lt; tests/ApiBundle/Datas/dump_test.sql
  ERROR 1698 (28000): Access denied for user 'root'@'localhost'
  </code></pre>
  
  <p>Why ?? I've tried so many things… And Google is definitely not my friend for this issue…</p>