提交 391b5cb2 编写于 作者: O obdev 提交者: LINGuanRen

fix init.sql

上级 a6f1d1d1
......@@ -27,16 +27,11 @@ alter tenant mysql set variables recyclebin = 'on';
alter tenant mysql set variables ob_enable_truncate_flashback = 'on';
select count(*) from oceanbase.__all_server group by zone limit 1 into @num;
set @sql_text = concat('alter resource pool pool1', ' unit_num = ', @num);
prepare stmt from @sql_text;
execute stmt;
deallocate prepare stmt;
set @sql_text = concat('alter resource pool pool2', ' unit_num = ', @num);
prepare stmt from @sql_text;
execute stmt;
deallocate prepare stmt;
select primary_zone from oceanbase.__all_tenant where tenant_id = 1 into @zone_name;
alter tenant oracle primary_zone = @zone_name;
alter tenant mysql primary_zone = @zone_name;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册