mysql max_connections on ubuntu(mysql最大连接数)

内容分享6个月前发布
1 0 0
全能 AI 聚合平台 免费

一站式接入主流 AI 大模型,支持对话 · 生图 · 生视频,即开即用

ChatGPT Claude Gemini Grok DeepSeek 通义千问 Ollama
AI对话 AI生图 AI视频
免费使用 →

一、mysql 5.7 on ubuntu 16.04

(1)sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf

max_connections=10000

(2)sudo vim /lib/systemd/system/mysql.service

LimitNOFILE=infinity
LimitMEMLOCK=infinity

(3)sudo systemctl daemon-reload
(4)sudo service mysqld restart

二、0x02 mysql 8.0 on ubuntu 20.04

(1)sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf

max_connections=10000

(2)sudo service mysqld restart
© 版权声明

相关文章

暂无评论

none
暂无评论...