From 3a8449789f7b3674330e1912abf029e771108c58 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Fri, 1 Apr 2022 16:59:24 +0200 Subject: [#2353] Proposed fixes for doc --- hammer.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hammer.py') diff --git a/hammer.py b/hammer.py index b71d5d77aa..9c788671c7 100755 --- a/hammer.py +++ b/hammer.py @@ -1220,6 +1220,9 @@ ssl_key = {cert_dir}/kea-client.key cmd += "GRANT ALL ON keatest.* TO 'keatest'@'localhost';\n" cmd += "GRANT SELECT ON keatest.* TO 'keatest_readonly'@'localhost';\n" if 'tls' in features: + # ALTER USER is the best place to put the REQUIRE but it is not + # supported by old versions so downgrade to GRANT. + # X509 is weak too but enough for testing purpose. cmd += "GRANT ALL ON keatest.* TO 'keatest_secure'@'localhost' REQUIRE X509;\n" cmd += "SET @@global.log_bin_trust_function_creators = 1;\n" cmd += "EOF\n\"" -- cgit v1.2.3