zl程序教程

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

当前栏目

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

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

concurrent_insert是MySQL服务器的一个参数变量,它指示MySQL在执行INSERTS语句时是否允许并发插入行。它允许多个客户端在同一张表中同时向数据库插入行。角色默认值是2,它可以用以下语句进行设置:

SET GLOBAL concurrent_insert = mode_value;

mode_value可以是以下值之一:

1:不允许concurrent_insert
2: 允许当前INSERT语句继续,但不允许其它INSERT语句。
0: 允许并发插入行。

一旦改变,这个变量的更改是永久的,直到服务器重新启动。

官方英文解释 concurrent_insert


concurrently for MyISAM tables that have no
free blocks in the middle of the data file.

This variable can take the values shown in the following
table. The variable can be assigned using either the name
values or corresponding integer values.


Enables concurrent inserts for all MyISAM tables,
even those that have holes. For a table with a hole, new
rows are inserted at the end of the table if it is in
use by another thread. Otherwise, MySQL acquires a
normal write lock and inserts the row into the hole.
我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题

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