Skip to content

Commit 723dd6e

Browse files
authored
Update to MySQL 9.0 (#9183)
1 parent f2a87b6 commit 723dd6e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

toolset/databases/mysql/create.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# http://stackoverflow.com/questions/37719818/the-server-time-zone-value-aest-is-unrecognized-or-represents-more-than-one-ti
33
SET GLOBAL time_zone = '+00:00';
44

5-
CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'%' IDENTIFIED WITH mysql_native_password BY 'benchmarkdbpass';
6-
CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'localhost' IDENTIFIED WITH mysql_native_password BY 'benchmarkdbpass';
5+
CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'%' IDENTIFIED WITH caching_sha2_password BY 'benchmarkdbpass';
6+
CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'benchmarkdbpass';
77

88
-- GitHub Actions/CI run the database server on the same system as the benchmarks.
99
-- Because we setup MySQL with the skip-name-resolve option, the IP address 127.0.0.1 might not be resolved to localhost
1010
-- anymore. This does not seem to matter, as long as Unix sockets are being used (e.g. when setting up the docker image),
1111
-- because the host is set to be localhost implicitly, but it matters for local TCP connections.
12-
CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'benchmarkdbpass';
12+
CREATE USER IF NOT EXISTS 'benchmarkdbuser'@'127.0.0.1' IDENTIFIED WITH caching_sha2_password BY 'benchmarkdbpass';
1313

1414
# modified from SO answer http://stackoverflow.com/questions/5125096/for-loop-in-mysql
1515
CREATE DATABASE IF NOT EXISTS hello_world;

toolset/databases/mysql/my.cnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ default-character-set=utf8
1616
# * Basic Settings
1717
#
1818
default-storage-engine = innodb
19-
mysql_native_password = ON
19+
#mysql_native_password = ON # disabled in v9
2020
#default_authentication_plugin = mysql_native_password
2121

2222
user = mysql

toolset/databases/mysql/mysql.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mysql:8.4
1+
FROM mysql:9.0
22

33
ENV MYSQL_ROOT_PASSWORD=root
44
ENV MYSQL_USER=benchmarkdbuser

0 commit comments

Comments
 (0)