From afbaa63472f89b27c0bd9af2053831229fb59e75 Mon Sep 17 00:00:00 2001 From: pengbingjie Date: Mon, 30 Dec 2024 18:48:32 +0800 Subject: [PATCH] add initializing the default engine --- storage/ctc/ctc_proxy_util.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/ctc/ctc_proxy_util.cc b/storage/ctc/ctc_proxy_util.cc index 1d93b1e..f36484d 100644 --- a/storage/ctc/ctc_proxy_util.cc +++ b/storage/ctc/ctc_proxy_util.cc @@ -134,6 +134,7 @@ int ctc_mysql_conn(MYSQL *&con, const char *host, const char *user, const char * const bool opt_reconnect = true; (void)mysql_options(con, MYSQL_OPT_RECONNECT, &opt_reconnect); (void)mysql_options(con, MYSQL_DEFAULT_AUTH, "mysql_native_password"); + (void)mysql_options(con, MYSQL_INIT_COMMAND, "set session default_storage_engine = CTC;"); // do init sql commands for new con. // for ddl do not go to ctc SE. this command should be first executed. it should be placed firstly at mysql_options MYSQL_INIT_COMMAND. -- Gitee