zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

MySQL Variables old_alter_table 数据库 参数变量解释及正确配置使用

mysql数据库配置变量 使用 解释 参数 正确
2023-06-13 09:11:25 时间
本站中文解释

old_alter_table参数控制MySQL是否在更改表结构时使用旧(比较缓慢的)方法。

默认情况下,值为OFF,使用快速改变表结构的新方法。

若想要开启改变表结构的旧方法,可以修改数据库配置文件my.cnf,在[mysqld]部分新增如下语句:old_alter_table=ON。

重启MySQL服务即可。

官方英文解释 old_alter_table


When this variable is enabled, the server does not use the
optimized method of processing an ALTER
TABLE operation. It reverts to using a temporary
table, copying over the data, and then renaming the temporary
table to the original, as used by MySQL 5.0 and earlier. For
more information on the operation of
ALTER TABLE, see
Section 13.1.8, “ALTER TABLE Statement”.


我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题

本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 MySQL Variables old_alter_table 数据库 参数变量解释及正确配置使用