From 11bf7669d355380bd8c08f0db20a2149fe4bc86d Mon Sep 17 00:00:00 2001 From: ruben Date: Mon, 16 Mar 2020 12:52:22 +0000 Subject: [PATCH] Update root auth on OSX/mariadb in CI --- .travis.yml | 1 + ci/root_user_setup.sql | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 ci/root_user_setup.sql diff --git a/.travis.yml b/.travis.yml index 8daef062..36028b2b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,6 +53,7 @@ __osx_mariadb_defaults: &__osx_mariadb_defaults - brew update - brew install boost mariadb - mysql.server start + - sudo mysql -u root < ci/root_user_setup.sql __osx_cmake_options: &__osx_cmake_options "CMAKE_OPTIONS=-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl" diff --git a/ci/root_user_setup.sql b/ci/root_user_setup.sql new file mode 100644 index 00000000..937a1f65 --- /dev/null +++ b/ci/root_user_setup.sql @@ -0,0 +1,3 @@ +ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mysql_native_password'; +ALTER USER 'root'@'localhost' IDENTIFIED BY ''; +FLUSH PRIVILEGES; \ No newline at end of file