mysql 非阻塞性创建索引

mysql 5.7 的 create index 就已经是 online了。

create index idx_index_name on table_name(column_name) ;

5.7

mysql 非阻塞性创建索引_第1张图片

8.0

mysql 非阻塞性创建索引_第2张图片

参考:

https://dev.mysql.com/doc/refman/5.7/en/innodb-online-ddl-operations.html
https://dev.mysql.com/doc/refman/8.0/en/innodb-online-ddl-operations.html

https://dev.mysql.com/doc/refman/5.7/en/innodb-online-ddl-limitations.html
https://dev.mysql.com/doc/refman/8.0/en/innodb-online-ddl-limitations.html

你可能感兴趣的:(#,mysql,opti,table,index,mysql,create,index)