We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please answer these questions before submitting your issue. Thanks!
mysql> show config where name like '%ddl%'; +------+-------------------+-----------------------------+-------+ | Type | Instance | Name | Value | +------+-------------------+-----------------------------+-------+ | tidb | 172.16.5.101:4000 | instance.ddl_slow_threshold | 300 | | tidb | 172.16.5.101:4000 | instance.tidb_enable_ddl | true | +------+-------------------+-----------------------------+-------+ 2 rows in set (0.02 sec) mysql> set tidb_enable_ddl=false; ERROR 8246 (HY000): Error happened when enable/disable DDL: can not disable ddl when there is only one instance mysql> set tidb_enable_ddl=false; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> show warnings; +---------+------+-------------------------------------------------------------------------------+ | Level | Code | Message | +---------+------+-------------------------------------------------------------------------------+ | Warning | 8142 | modifying tidb_enable_ddl will require SET GLOBAL in a future version of TiDB | +---------+------+-------------------------------------------------------------------------------+ 1 row in set (0.00 sec) mysql> show config where name like '%ddl%'; +------+-------------------+-----------------------------+-------+ | Type | Instance | Name | Value | +------+-------------------+-----------------------------+-------+ | tidb | 172.16.5.101:4000 | instance.ddl_slow_threshold | 300 | | tidb | 172.16.5.101:4000 | instance.tidb_enable_ddl | false | +------+-------------------+-----------------------------+-------+ 2 rows in set (0.02 sec) mysql> use test; Database changed mysql> create table t1(a int); Query OK, 0 rows affected (1.09 sec)
create table fail
create table success
[tidb@101 ~]$ /home/tidb/deploy/tidb-4000/bin/tidb-server -V Release Version: v6.5.0 Edition: Community Git Commit Hash: 706c3fa Git Branch: heads/refs/tags/v6.5.0 UTC Build Time: 2022-12-27 03:50:44 GoVersion: go1.19.3 Race Enabled: false TiKV Min Version: 6.2.0-alpha Check Table Before Drop: false Store: unistore [tidb@101 ~]$
The text was updated successfully, but these errors were encountered:
tidb_enable_ddl
ddl: fix error when setting tidb_enable_ddl (#41298)
70d1f62
close #41277
ddl: fix error when setting tidb_enable_ddl (pingcap#41298)
767e623
close pingcap#41277
CbcWestwolf
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
create table fail
3. What did you see instead (Required)
create table success
4. What is your TiDB version? (Required)
[tidb@101 ~]$ /home/tidb/deploy/tidb-4000/bin/tidb-server -V
Release Version: v6.5.0
Edition: Community
Git Commit Hash: 706c3fa
Git Branch: heads/refs/tags/v6.5.0
UTC Build Time: 2022-12-27 03:50:44
GoVersion: go1.19.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: unistore
[tidb@101 ~]$
The text was updated successfully, but these errors were encountered: