【 使用环境 】测试环境
【 OB or 其他组件 】OB
【 使用版本 】4.3.1
【问题描述】收集统计
【复现路径】CALL dbms_stats.gather_table_stats(‘xxx’, ‘2023028_temp’, granularity=>‘GLOBAL’, method_opt=>‘FOR ALL COLUMNS SIZE AUTO’);
mysql> desc 2023028_temp;
±----------±------------±-----±----±--------±------+
| Field | Type | Null | Key | Default | Extra |
±----------±------------±-----±----±--------±------+
| user_name | varchar(64) | NO | MUL | NULL | |
±----------±------------±-----±----±--------±------+
是执行手动收集 报错么?
是的
mysql> CALL dbms_stats.gather_table_stats(‘xxxx’, ‘2023028_temp’, granularity=>‘GLOBAL’, method_opt=>‘FOR ALL COLUMNS SIZE AUTO’);
mysql: Character set ‘8’ is not a compiled character set and is not specified in the ‘/usr/local/mysql/share/charsets/Index.xml’ file
Query OK, 0 rows affected (0.09 sec)
你换成obclient客户端 在执行一下
obclient可以