Skip to content

Commit 02b968c

Browse files
committed
.travis.yml: create database under root user.
After migrating from Ubuntu 12.04 to 14.04 the builds has started to fail with error: ERROR 1044 (42000) at line 1: Access denied for user 'travis'@'%' to database 'mystamps' Addressed to #612
1 parent d03a72b commit 02b968c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
before_script:
1212
- set -o errexit # exit immediately when commands return a non-zero status
1313
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
14-
mysql -u travis -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
14+
mysql -u root -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
1515
mkdir -p /tmp/uploads /tmp/preview;
1616
cp src/main/resources/test/test.png /tmp/uploads/1.png;
1717
if [ "$TRAVIS_BRANCH" = 'prod' -a "$TRAVIS_PULL_REQUEST" = 'false' ]; then

0 commit comments

Comments
 (0)