同集群中,/*T![auto_ran] auto_random */]特性标识符在客户端执行不生效

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【 TiDB 使用环境】tidb版本 4.0.8,mysql客户端5.7.28

【概述】 tidb中,使用了 auto_random 特性的表,使用show create table 输出建表语句中,
AUTO_RANDOM 属性会被注释为 /*T![auto_rand] auto_random */,直接在同一个集群中,使用命令行mysql客户端复制建表语句执行,auto_random 不生效。

【现象】
通过dumpling备份 test.t 表结构,test.t-schema.sql 中显示:
create table t (
id bigint not null /*T![auto_rand] auto_random(5) */ COMMENT ‘id’,

primary key(id)
)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin /*T![auto_rand_base] AUTO_RANDOM_BASE=120001 */ COMMENT=‘xxx’;

测试1:
从服务器以命令行方式登录同一个集群tidb : mysql -uxx -pxx -hxx -Pxxx
use test1;
复制以上create table 语句执行,执行成功。
再次show create table test1.t 发现 auto_random属性消失。

测试2:
从服务器以命令行方式登录同一个集群tidb : mysql -uxx -pxx -hxx -Pxxx
执行
use test1;
source test.t-schema.sql
执行成功。
再次show create table test1.t 发现 auto_random属性消失。

测试3:
在服务器以命令行方式导入集群tidb : mysql -uxx -pxx -hxx -Pxxx -Dtest1 <test.t-schema.sql
执行成功。
再次show create table test1.t 发现 auto_random属性消失。

测试4:
使用 navicat 客户端连接tidb,复制test.t-schema.sql 中的建表语句,执行成功且
auto_random属性生效。

【问题】
1、当前tidb版本为4.0.8, 且支持auto_random属性,建表操作均在同集群中进行。为什么source方式以及客户端命令行方式执行后,auto_random属性消失,使用 navicat 创建确可以成功?
2、不使用tidb-lightning,不使用navicat客户端,不修改备份脚本的情况下,使用手工方式利用备份脚本批量建表,如何保证auto_random属性生效?

mysql连接加上–comments试试

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。