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
# Prepare the database for running the tests with a MySQL version 8.0 or higher.
113
157
install_mysql_db_8_0_plus() {
114
-
set -ex
158
+
set -ex# print all the commands.
115
159
mysql -e "CREATE DATABASE IF NOT EXISTS \`${TEST_DB}\`;"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
116
160
mysql -e "CREATE USER IF NOT EXISTS \`${TEST_USER}\`@'%' IDENTIFIED WITH caching_sha2_password BY '${TEST_PASSWORD}'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
117
161
mysql -e "GRANT ALL PRIVILEGES ON \`${TEST_DB}\`.* TO '${TEST_USER}'@'%'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
118
162
mysql -e "GRANT ALL PRIVILEGES ON \`${TEST_DB}_scaffold\`.* TO '${TEST_USER}'@'%'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
163
+
{ set +ex; } 2> /dev/null # stop printing the commands
119
164
}
120
165
121
166
# Prepare the database for running the tests with a MySQL version lower than 8.0.
122
167
install_mysql_db_lower_than_8_0() {
123
-
set -ex
168
+
set -ex# print all the commands.
124
169
mysql -e "CREATE DATABASE IF NOT EXISTS \`${TEST_DB}\`;"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
125
170
mysql -e "GRANT ALL ON \`${TEST_DB}\`.* TO '${TEST_USER}'@'%' IDENTIFIED BY '${TEST_PASSWORD}'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
126
171
mysql -e "GRANT ALL ON \`${TEST_DB}_scaffold\`.* TO '${TEST_USER}'@'%' IDENTIFIED BY '${TEST_PASSWORD}'"${HOST_STRING} -u"${USER}""${PASSWORD_STRING}"
172
+
{ set +ex; } 2> /dev/null # stop printing the commands
127
173
}
128
174
129
175
# Prepare the database for running the tests with MariaDB
0 commit comments