Skip to content

Commit f6ff681

Browse files
committed
Create a MySQL travis user and grant all privileges
1 parent e372892 commit f6ff681

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis_setup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ if ! [[ x$OSTYPE =~ ^xdarwin ]]; then
2020
sudo service mysql restart
2121
fi
2222

23-
sudo mysql -e "CREATE USER '$USER'@'localhost'" || true
23+
sudo mysql -u root -e "CREATE USER '$USER'@'localhost'" || true
24+
sudo mysql -u root -e "GRANT ALL ON test.* TO '$USER'@'localhost'" || true
2425

2526
# Print the MySQL version and create the test DB
2627
if [[ x$OSTYPE =~ ^xdarwin ]]; then

0 commit comments

Comments
 (0)