title: Travis mysql service report fail
body: <p>I have a bunch of TDD code, including database tests and I've tried to upload to Github.
  I've just checked on my local machine, every test are passed.
  <a href="https://i.stack.imgur.com/YauBg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YauBg.png" alt="enter image description here"></a> </p>
  
  <p>Also I'm trying to use Travis CI to check my tests are succeed or failed.
  My job log shows,</p>
  
  <blockquote>
    <p>mysql -u root -e 'CREATE DATABASE worldCountries;'</p>
    
    <p>mysql -u root -e "CREATE USER 'user45'@'localhost' IDENTIFIED BY 'user45';" </p>
    
    <p>ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'user45'@'localhost' </p>
    
    <p>The command "mysql -u root -e "CREATE USER
    'user45'@'localhost' IDENTIFIED BY 'user45';"" failed and exited with 1 during .</p>
  </blockquote>
  
  <p><a href="https://stackoverflow.com/questions/38955719/travis-mysql-database-create-user-error">I have found a really similar question</a>, but it didn't help me to solve the issue.</p>
  
  <p>My travis.yml file is the following:</p>
  
  <pre><code>language: php
  php:
    - '5.6'
    - '7.0'
    - hhvm
  services:
    - mysql
  dist: trusty
  sudo: required
  addons:
    apt:
    packages:
    - mysql-server-5.6
    - mysql-client-core-5.6
    - mysql-client-5.6
  before_script:
    - mysql -u root -e 'CREATE DATABASE worldCountries;'
    - mysql -u root -e "CREATE USER 'user45'@'localhost' IDENTIFIED BY 'user45';"
    - mysql -u root -e "GRANT ALL ON worldCountries.* TO 'user45'@'localhost';"
    - composer self-update
    - composer install --prefer-source --no-interaction
  script:
    - vendor/bin/phpunit
    - vendor/bin/phpmd src/ text phpmd.xml
  </code></pre>
  
  <p>I appreciate every answer!</p>
  
  <p>-- <strong>Edit</strong> --</p>
  
  <p>On my local machine, the mysql service works perfectly.
  All of my test passed green, and the database tests works fine.</p>
  
  <p>With the same settings (as below travis.yml) I've tried to synchronize my repository in Travis, and I've received the failed report.   </p>