mirror of
https://github.com/SOCI/soci.git
synced 2026-05-01 16:49:27 -05:00
Set up MySQL to allow CREATE FUNCTION in the CI builds
This is necessary with MySQL 8.
This commit is contained in:
@@ -17,5 +17,8 @@ mysql --version
|
||||
mysql -u root ${SOCI_MYSQL_PASSWORD_OPT} -e "CREATE DATABASE soci_test;"
|
||||
mysql -u root ${SOCI_MYSQL_PASSWORD_OPT} -e "GRANT ALL PRIVILEGES ON soci_test.* TO '${SOCI_MYSQL_USER}'@'%';";
|
||||
|
||||
# This is necessary for MySQL stored procedure unit test to work.
|
||||
mysql -u root ${SOCI_MYSQL_PASSWORD_OPT} -e "SET GLOBAL log_bin_trust_function_creators=1";
|
||||
|
||||
echo 'Testing connection to the database:'
|
||||
echo 'SELECT USER();' | mysql --database=soci_test
|
||||
|
||||
Reference in New Issue
Block a user