gpt4 book ai didi

mysql - 在单个大插入上丢失与 mysql 的连接

转载 作者:行者123 更新时间:2023-11-29 02:36:15 24 4
gpt4 key购买 nike

我正在尝试恢复具有定义的表中的数据

CREATE TABLE UserDomainSummaries (
summary_id INT UNSIGNED,
user_id BIGINT UNSIGNED,
domain_id BIGINT UNSIGNED,
city_id INT UNSIGNED,
state_id INT UNSIGNED,
country_id INT UNSIGNED,
visitCount INT UNSIGNED NOT NULL,
pageViewCount INT UNSIGNED NOT NULL,
totalTimeSpentInSecs INT UNSIGNED NOT NULL,
ffVisitCount INT UNSIGNED NOT NULL,
ffPageViewCount INT UNSIGNED NOT NULL,
ffTotalTimeSpentInSecs INT UNSIGNED NOT NULL,

PRIMARY KEY(summary_id, user_id, domain_id, country_id, state_id, city_id),
FOREIGN KEY(summary_id) REFERENCES Summaries(id) ON DELETE CASCADE
) ENGINE=INNODB DEFAULT CHARSET=utf8;`

来自一个包含大量行的单个插入文件,总计 200MB。但是,在两者之间弹出一个错误说

ERROR 2013 (HY000): Lost Connection To MySQL Server During Query

我尝试调整

的值
innodb_buffer_pool_size
net_read_timeout
bulk_insert_buffer_size
max_allowed_packet

但无济于事。

为什么会这样?

最佳答案

关于mysql - 在单个大插入上丢失与 mysql 的连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4707536/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com