gpt4 book ai didi

mysql - #1016 - 无法打开文件 : './database_name/#sql-38f_36aa.frm' (errno: 24)

转载 作者:可可西里 更新时间:2023-11-01 06:28:19 28 4
gpt4 key购买 nike

我在带有 MyISAM 存储引擎的 mysql 中有一个表。 我想在特定表上创建分区,为此我正在执行查询 -

alter table Stops PARTITION BY KEY(`stop_id`) PARTITIONS 200

其中“stop_id”是 varchar 类型。执行上述查询时出现错误 -

#1016 - Can't open file: './database_name/#sql-38f_36aa.frm' (errno: 24)

谁能帮我解决这个问题?

谢谢。

最佳答案

来自 herehere .

errno: 24 means that too many files are open for the given process. There is a read-only mysql variable called 'open_files_limit' that will show how many open files are allowed by the mysqld:

SHOW VARIABLES LIKE 'open%';

A lot systems set this to something very low, like 1024. Unfortunately, the following will NOT work:

SET open_files_limit=100000

MySQL will respond with:

ERROR 1238 (HY000): Variable 'open_files_limit' is a read only variable

However, it is possible to make a change to /etc/my.cnf. This file may not exist, if not, just create it. Be sure it has the following contents:

[mysqld]

open-files-limit = 100000

Then, be sure to restart mysql:

sudo /etc/init.d/mysql restart

Now, SHOW VARIABLES LIKE 'open%' should show 100000. The number you use may be different.

关于mysql - #1016 - 无法打开文件 : './database_name/#sql-38f_36aa.frm' (errno: 24),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11390213/

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