diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index e93fabb0291..00b0fb2bf40 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -117,6 +117,7 @@ this program; if not, write to the Free Software Foundation, Inc.,
 #include <limits>
 #include <myisamchk.h>                          // TT_FOR_UPGRADE
 #include "sql_type_vector.h"
+#include <mysql/service_thd_mdl.h>
 
 #define thd_get_query_id(thd) uint64_t((thd)->query_id)
 #define thd_in_lock_tables(thd) (thd)->in_lock_tables
@@ -225,6 +226,54 @@ static my_bool innodb_read_only_compressed;
 /** A dummy variable */
 static uint innodb_max_purge_lag_wait;
 
+/** Print MDL acquisition status for a table name.
+@param	thd		MySQL thread handle
+@param	table_name	table name object
+@param	op		operation description for logging */
+void innodb_print_mdl_status(
+  THD *thd, const table_name_t& table_name, const char* op)
+{
+  char db_name[NAME_LEN + 1];
+  char tbl_name[NAME_LEN + 1];
+  char sql_db_name[NAME_LEN + 1];
+  char sql_tbl_name[NAME_LEN + 1];
+  
+  /* Extract database and table names using table_name_t methods */
+  size_t db_len = table_name.dblen();
+  const char* tbl_start = table_name.basename();
+
+  if (db_len > 0 && tbl_start)
+  {
+    /* Copy database name */
+    memcpy(db_name, table_name.m_name, db_len);
+    db_name[db_len] = '\0';
+
+    /* Copy table name */
+    strncpy(tbl_name, tbl_start, NAME_LEN);
+    tbl_name[NAME_LEN] = '\0';
+
+    /* Convert internal names to SQL names using filename_to_tablename */
+    filename_to_tablename(db_name, sql_db_name, sizeof(sql_db_name));
+    filename_to_tablename(tbl_name, sql_tbl_name, sizeof(sql_tbl_name));
+
+    MDL_context *mdl_context=
+      static_cast<MDL_context*>(thd_mdl_context(thd));
+
+    bool is_locked= false;
+	if (mdl_context->is_lock_owner(MDL_key::TABLE, sql_db_name,
+                                   sql_tbl_name, MDL_EXCLUSIVE))
+		is_locked= true;
+
+    ib::info() << "MDL Status [" << op << "]: "
+               << "Database: '" << sql_db_name << "' "
+               << "Table: '" << sql_tbl_name << "' "
+               << "MDL lock: " << (is_locked ? "YES" : "NO");
+  }
+  else
+    ib::info() << "MDL Status [" << op << "]: "
+	       << "Invalid table name format: '" << table_name.m_name << "'";
+}
+
 /** Wait for trx_sys.history_size() to be below a limit. */
 static void innodb_max_purge_lag_wait_update(THD *thd, st_mysql_sys_var *,
                                              void *, const void *limit)
diff --git a/storage/innobase/include/ha_prototypes.h b/storage/innobase/include/ha_prototypes.h
index 08ef2050b48..d806f4558f4 100644
--- a/storage/innobase/include/ha_prototypes.h
+++ b/storage/innobase/include/ha_prototypes.h
@@ -402,6 +402,13 @@ allocated from heap */
 char *dict_table_lookup(LEX_CSTRING db, LEX_CSTRING name,
                         dict_table_t **table, mem_heap_t *heap) noexcept;
 
+/** Print MDL acquisition status for a table name.
+@param	thd		MySQL thread handle
+@param	table_name	table name object
+@param	op		operation description for logging */
+void innodb_print_mdl_status(
+  THD *thd, const table_name_t& table_name, const char* op);
+
 #ifdef WITH_WSREP
 /** Append table-level exclusive key.
 @param thd   MySQL thread handle
diff --git a/storage/innobase/row/row0mysql.cc b/storage/innobase/row/row0mysql.cc
index 6098d098c64..b09f6187fb4 100644
--- a/storage/innobase/row/row0mysql.cc
+++ b/storage/innobase/row/row0mysql.cc
@@ -2620,6 +2620,11 @@ row_rename_table_for_mysql(
 			goto funct_exit;
 		}
 	}
+	innodb_print_mdl_status(trx->mysql_thd, table->name,
+			           "RENAME TABLE - FROM");
+	innodb_print_mdl_status(
+		trx->mysql_thd, table_name_t(const_cast<char*>(new_name)),
+		"RENAME TABLE - TO");
 
 	err = trx_undo_report_rename(trx, table);
 
