Skip to content

Commit 6d6e1b1

Browse files
committed
trying to fix OperationalError(2006) problem in travis
1 parent d072e0b commit 6d6e1b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ install:
7171
before_script:
7272
# set up mysql database
7373
- mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
74+
- cat /etc/mysql/my.cnf
75+
- sed -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf
76+
- cat /etc/mysql/my.cnf
7477

7578
# set up postgresql database
7679
- psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres

0 commit comments

Comments
 (0)