数据库open_files_limit = 65535

数据库错误解决:java.sql.SQLException: Out of resources when opening file

  • 在linux下面,找到/etc下面my.cnf配置文件

  • 在my.cnf配置文件的[mysqld]下增加 open_files_limit = 65535 配置

open_files_limit = 65535
  • 重启mysql服务
// 重启MySQL服务命令
sudo systemctl restart mysql

还不行的话用这个

# 在my.cnf中调整以下参数
[mysqld]
table_open_cache = 4000
open_files_limit = 65535
posted @ 2025-01-06 19:31  deyang  阅读(67)  评论(0)    收藏  举报