欢迎光临
我们一直在努力

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

本站中文解释

sync_frm是MySQL多实例服务器中的一个参数变量,用于控制同步.frm文件的频率。

设置方法:

1.在MySQL的配置文件中修改sync_frm参数:

[mysqld]
sync_frm=1

2.重新启动MySQL服务器来使变更生效:

sudo systemctl restart mysqld

官方英文解释

sync_frm

Command-Line Format --sync-frm[={OFF|ON}]
Deprecated Yes
System Variable sync_frm
Scope Global
Dynamic Yes
Type Boolean
Default Value ON

If this variable is set to 1, when any nontemporary table is
created its .frm file is synchronized to
disk (using fdatasync()). This is slower
but safer in case of a crash. The default is 1.

This variable is deprecated in MySQL 5.7 and is
removed in MySQL 8.0 (when .frm
files become obsolete).

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。