Skip to content

Commit 9ffa917

Browse files
zfrendoiSecloud
authored andcommitted
fix: 重建添加mysql继承参数 #10339
1 parent 4fb28b8 commit 9ffa917

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dbm-ui/backend/flow/engine/bamboo/scene/mysql/common/get_master_config.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
'lower_case_table_names','max_allowed_packet','max_binlog_size','max_connections',
2222
'net_buffer_length','relay_log_uncompress','replica_parallel_type','replica_parallel_workers',
2323
'slave_exec_mode','slave_parallel_type','slave_parallel_workers','sql_mode','table_definition_cache',
24-
'table_open_cache','wait_timeout','time_zone','group_concat_max_len','secure_file_priv')"""
24+
'table_open_cache','wait_timeout','time_zone','group_concat_max_len','secure_file_priv',
25+
'default_storage_engine','default-storage-engine')"""
2526

2627

2728
def get_cluster_config(cluster: Cluster, query_cmds=variables_sql) -> dict:

dbm-ui/backend/flow/engine/bamboo/scene/mysql/mysql_rollback_data_flow.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ def rollback_data_flow(self):
128128
install_ticket["inst_num"] = 1
129129
install_ticket["ticket_type"] = self.ticket_data["ticket_type"]
130130
sql = """show global variables where Variable_name in ('sql_mode','max_allowed_packet','lower_case_table_names',
131-
'innodb_strict_mode','max_heap_table_size','tmp_table_size','character_set_server','collation_server')"""
131+
'innodb_strict_mode','max_heap_table_size','tmp_table_size','character_set_server','collation_server',
132+
'default_storage_engine','default-storage-engine')"""
132133
old_instance_configs = get_cluster_config(cluster_class, query_cmds=sql)
133134
install_ticket["apply_infos"] = [
134135
{

0 commit comments

Comments
 (0)