-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename column transaction.empty to transaction.is_empty to workaround…
… MySQL 8.0.4 suddenly declaring empty a reserved keyword. TODO: - Document using docker to test mysql 8.0 on mac - Check this compatibility in in the schema installer; - either migrate automatically or provide a migration script. - Change note for this. - Test on CI
- Loading branch information
Showing
9 changed files
with
72 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
mysql -uroot -e "CREATE USER 'relstoragetest'@'localhost' IDENTIFIED BY 'relstoragetest';" | ||
mysql -uroot -e "CREATE DATABASE relstoragetest;" | ||
mysql -uroot -e "GRANT ALL ON relstoragetest.* TO 'relstoragetest'@'localhost';" | ||
mysql -uroot -e "CREATE DATABASE relstoragetest2;" | ||
mysql -uroot -e "GRANT ALL ON relstoragetest2.* TO 'relstoragetest'@'localhost';" | ||
mysql -uroot -e "CREATE DATABASE relstoragetest_hf;" | ||
mysql -uroot -e "GRANT ALL ON relstoragetest_hf.* TO 'relstoragetest'@'localhost';" | ||
mysql -uroot -e "CREATE DATABASE relstoragetest2_hf;" | ||
mysql -uroot -e "GRANT ALL ON relstoragetest2_hf.* TO 'relstoragetest'@'localhost';" | ||
mysql -uroot -e "FLUSH PRIVILEGES;" | ||
# To be able to successfully test against a MySQL on a different host, | ||
# it's best to set up a proxy: socat tcp-listen:3306,reuseaddr,fork tcp:192.168.99.100:3306 | ||
# This can arise when running mysql in docker on macOS, which doesn't | ||
# correctly handle the `docker run` `-p` option to forward ports to the local host; | ||
# specify the address of the virtual machine. | ||
# docker run --publish 3306:3306 --rm --name mysqld -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:8.0 | ||
HOST="-h ${RS_DB_HOST-localhost}" | ||
mysql -uroot $HOST -e "CREATE USER 'relstoragetest' IDENTIFIED BY 'relstoragetest';" | ||
mysql -uroot $HOST -e "CREATE DATABASE relstoragetest;" | ||
mysql -uroot $HOST -e "GRANT ALL ON relstoragetest.* TO 'relstoragetest';" | ||
mysql -uroot $HOST -e "CREATE DATABASE relstoragetest2;" | ||
mysql -uroot $HOST -e "GRANT ALL ON relstoragetest2.* TO 'relstoragetest';" | ||
mysql -uroot $HOST -e "CREATE DATABASE relstoragetest_hf;" | ||
mysql -uroot $HOST -e "GRANT ALL ON relstoragetest_hf.* TO 'relstoragetest';" | ||
mysql -uroot $HOST -e "CREATE DATABASE relstoragetest2_hf;" | ||
mysql -uroot $HOST -e "GRANT ALL ON relstoragetest2_hf.* TO 'relstoragetest';" | ||
mysql -uroot $HOST -e "FLUSH PRIVILEGES;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters