You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql -e "GRANT ALL ON \`${TEST_DB}_scaffold\`.* TO '${TEST_USER}'@'%' IDENTIFIED BY '${TEST_PASSWORD}'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
118
117
}
119
118
120
-
if [ "${TYPE}"=="MariaDB" ] || [ "${MAJOR}"-ge 8 ];then
119
+
# Prepare the database for running the tests with MariaDB
120
+
install_mariadb() {
121
+
set -ex
122
+
mariadb -e "CREATE DATABASE IF NOT EXISTS \`${TEST_DB}\`;"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
123
+
mariadb -e "CREATE USER IF NOT EXISTS \`${TEST_USER}\`@'%' IDENTIFIED WITH caching_sha2_password BY '${TEST_PASSWORD}'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
124
+
mariadb -e "GRANT ALL PRIVILEGES ON \`${TEST_DB}\`.* TO '${TEST_USER}'@'%'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
125
+
mariadb -e "GRANT ALL PRIVILEGES ON \`${TEST_DB}_scaffold\`.* TO '${TEST_USER}'@'%'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
0 commit comments