您的位置:首页技术文章
文章详情页

mysql中的show table status like ’tablename’中的version表示什么意思?

浏览:51日期:2022-06-18 10:51:53

问题描述

mysql> show table status like ’wp_xdlog’G;*************************** 1. row *************************** Name: wp_xdlog Engine: MyISAMVersion: 10 Row_format: Dynamic Rows: 0 Avg_row_length: 0 Data_length: 0Max_data_length: 281474976710655 Index_length: 1024 Data_free: 0 Auto_increment: 1 Create_time: 2016-05-03 18:26:45 Update_time: 2016-05-03 18:26:45 Check_time: NULL Collation: utf8_general_ci Checksum: NULL Create_options:Comment:1 row in set (0.00 sec)ERROR:No query specified

上面的version版本号是什么意思?官方的解释是

VersionThe version number of the table’s .frm file.

这个版本号会不会随着一些操作改变,还是固定的?

问题解答

回答1:

没有试验过,推测是mysql表结构的版本号,作用么就是跟踪表结构的历程,如在replication时,如果表结构的版本不一致,就不应该进行replication.自己可以测试一下,alter一下表结构,在show 一下看看version应该变化了,应该是mysql内部机制使用,对用户来说是透明的。

相关文章: