From c03ddb94d6214a9ef99dea24e55c956b55a88c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Thu, 29 Sep 2022 10:48:46 +0200 Subject: [PATCH] Fix 'mysql_ldap_mapping' not being load to runtime at startup --- lib/ProxySQL_Admin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 6bf6194f6..5df8816b1 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -10348,6 +10348,9 @@ void ProxySQL_Admin::__insert_or_replace_maintable_select_disktable() { #if defined(TEST_AURORA) || defined(TEST_GALERA) admindb->execute("DELETE FROM mysql_servers WHERE gtid_port > 0"); // temporary disable add GTID checks #endif + if (GloMyLdapAuth) { + admindb->execute("INSERT OR REPLACE INTO main.mysql_ldap_mapping SELECT * FROM disk.mysql_ldap_mapping"); + } } /* commented in 2.3 , unused