|
@@ -2,14 +2,14 @@
|
|
|
# http://stackoverflow.com/questions/37719818/the-server-time-zone-value-aest-is-unrecognized-or-represents-more-than-one-ti
|
|
|
SET GLOBAL time_zone = '+00:00';
|
|
|
|
|
|
-CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'%' IDENTIFIED WITH mysql_native_password BY 'benchmarkdbpass';
|
|
|
-CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'localhost' IDENTIFIED WITH mysql_native_password BY 'benchmarkdbpass';
|
|
|
+CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'%' IDENTIFIED WITH caching_sha2_password BY 'benchmarkdbpass';
|
|
|
+CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'benchmarkdbpass';
|
|
|
|
|
|
-- GitHub Actions/CI run the database server on the same system as the benchmarks.
|
|
|
-- Because we setup MySQL with the skip-name-resolve option, the IP address 127.0.0.1 might not be resolved to localhost
|
|
|
-- anymore. This does not seem to matter, as long as Unix sockets are being used (e.g. when setting up the docker image),
|
|
|
-- because the host is set to be localhost implicitly, but it matters for local TCP connections.
|
|
|
-CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'benchmarkdbpass';
|
|
|
+CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'127.0.0.1' IDENTIFIED WITH caching_sha2_password BY 'benchmarkdbpass';
|
|
|
|
|
|
# modified from SO answer http://stackoverflow.com/questions/5125096/for-loop-in-mysql
|
|
|
CREATE DATABASE IF NOT EXISTS hello_world;
|