From 8fdcd9762805be2c778c0988eb4528789812255f Mon Sep 17 00:00:00 2001 From: Rowena Date: Mon, 16 Dec 2024 14:37:07 +0100 Subject: [PATCH 1/2] fix(lb): fix mysql health check info --- .../configuring-health-checks.mdx | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/network/load-balancer/reference-content/configuring-health-checks.mdx b/network/load-balancer/reference-content/configuring-health-checks.mdx index 844beb43bf..12bde09829 100644 --- a/network/load-balancer/reference-content/configuring-health-checks.mdx +++ b/network/load-balancer/reference-content/configuring-health-checks.mdx @@ -48,16 +48,29 @@ While `GET` is a commonly-used method as it is considered a "safe" choice with m For MYSQL health checks, you are prompted to select the database username. The MYSQL health check sends two MySQL packets to the server: first a Client Authentication packet and then a QUIT packet to properly close the MySQL session. The received MySQL Handshake Initialization packet (and/or Error packet) is then parsed. This basic but useful test does not produce errors or aborted connections on the server. However, bear in mind that it does not check database presence or database consistency (an external check e.g. with xinetd would be required for this). - The user specified for the health check must be unlocked and authorized without a password. To create a basic limited user in MySQL with optional resource limits: - ``` - CREATE USER ''@'' - /*!50701 WITH MAX_QUERIES_PER_HOUR 1 MAX_UPDATES_PER_HOUR 0 */ - /*M!100201 MAX_STATEMENT_TIME 0.0001 */; - ``` + The user specified for the health check must be unlocked and authorized without a password. + + For MySQL versions < 8.0: + + ``` + CREATE USER ''@'' + ``` + + For MySQL versions >= 8.0 and < 9.0, the `mysql_native_password` authentication plugin is no longer enabled by default. Therefore you need to activate it with the following setting: + + ``` + mysql_native_password=ON + ``` + + You can then create the user: + + ``` + CREATE USER ''@'' IDENTIFIED WITH mysql_native_password; + ``` - This health check method requires MySQL >=3.22. For older versions, we recommend using a TCP health check. + This health check method requires MySQL >= 3.22 or < 9.0 For older or newer versions, we recommend using a TCP health check. ### PGSQL From 529c2840954c43f95261c2134e18dd4d7f5f6cbd Mon Sep 17 00:00:00 2001 From: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:10:13 +0100 Subject: [PATCH 2/2] Update network/load-balancer/reference-content/configuring-health-checks.mdx Co-authored-by: Jessica <113192637+jcirinosclwy@users.noreply.github.com> --- .../reference-content/configuring-health-checks.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/load-balancer/reference-content/configuring-health-checks.mdx b/network/load-balancer/reference-content/configuring-health-checks.mdx index 12bde09829..5c01840d05 100644 --- a/network/load-balancer/reference-content/configuring-health-checks.mdx +++ b/network/load-balancer/reference-content/configuring-health-checks.mdx @@ -70,7 +70,7 @@ For MYSQL health checks, you are prompted to select the database username. The M - This health check method requires MySQL >= 3.22 or < 9.0 For older or newer versions, we recommend using a TCP health check. + This health check method requires MySQL >= 3.22 or < 9.0 For older or newer versions, we recommend using a TCP health check. ### PGSQL