diff --git a/.travis.yml b/.travis.yml index 84b8c25f1b1..f818f089fab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,12 +15,11 @@ services: - postgresql addons: - mariadb: '10.0' postgresql: '9.3' apt: sources: - # To use the last version of pgloader, we add repo of postgresql - - pgdg-trusty + # To use the last version of pgloader, we add repo of postgresql with a name available in http://apt.postgresql.org/pub/repos/apt/ + - pgdg-xenial packages: # We need a webserver to test the webservices # Let's install Apache with. @@ -195,7 +194,7 @@ before_script: echo "Setting up database" if [ "$DB" = 'mysql' ] || [ "$DB" = 'mariadb' ] || [ "$DB" = 'postgresql' ]; then echo "MySQL" - mysql -h 127.0.0.1 -u root -e 'DROP DATABASE IF EXISTS travis;' + mysql -u root -S -e 'DROP DATABASE IF EXISTS travis;' mysql -u root -e 'CREATE DATABASE IF NOT EXISTS travis;' mysql -u travis -e 'GRANT ALL PRIVILEGES ON travis.* TO travis@127.0.0.1;' mysql -e 'FLUSH PRIVILEGES;'