Skip to content

Commit a86bc48

Browse files
committed
.travis.yml: quote user/host to fix "ERROR 1046 (3D000): No database selected" error.
I hope that helps. Addressed to #612
1 parent 0145ff4 commit a86bc48

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
@@ -12,7 +12,7 @@ before_script:
1212
- set -o errexit # exit immediately when commands return a non-zero status
1313
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
1414
mysql -u root -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
15-
mysql -u root -e 'GRANT ALL PRIVILEGES ON mystamps@* TO travis@%;';
15+
mysql -u root -e "GRANT ALL PRIVILEGES ON mystamps@* TO 'travis'@'%';";
1616
mkdir -p /tmp/uploads /tmp/preview;
1717
cp src/main/resources/test/test.png /tmp/uploads/1.png;
1818
if [ "$TRAVIS_BRANCH" = 'prod' -a "$TRAVIS_PULL_REQUEST" = 'false' ]; then

0 commit comments

Comments
 (0)