From f87d77580e4502381e2ad9f7193cda342c4ad6bf Mon Sep 17 00:00:00 2001 From: Nikhil Benesch Date: Mon, 6 Dec 2021 01:01:35 -0500 Subject: [PATCH] chbench: use native password authentication for mysql For compatibility with the PyMySQL driver on some platforms. --- demo/chbench/mysql/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/demo/chbench/mysql/Dockerfile b/demo/chbench/mysql/Dockerfile index 2db393efdf3a8..6f0dc6959ee9e 100644 --- a/demo/chbench/mysql/Dockerfile +++ b/demo/chbench/mysql/Dockerfile @@ -11,3 +11,7 @@ FROM mysql/mysql-server:8.0.27 COPY mysql.cnf /etc/mysql/conf.d/ COPY replication.sql /docker-entrypoint-initdb.d/ + +# The caching_sha2_password plugin requires the Python `cryptography` package +# on the client, which is a somewhat onerous dependency. +CMD ["mysqld", "--default-authentication-plugin=mysql_native_password"]