Skip to content

Commit 3e14652

Browse files
committed
.travis.yml: add IDENTIFIED BY clause to GRANT in attempt to fix "ERROR 1046 (3D000): No database selected" error.
I hope that really helps. Addressed to #612
1 parent 4e0d6f6 commit 3e14652

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@% IDENTIFIED BY '';";
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)