tidb修改最大连接数

 

1.执行如下命令
tiup cluster edit-config mytidb_cluster
添加如下段落
server_configs:
tidb:
max-server-connections: 1000

wq!保存退出,类似linux中的vim

 

2.reload配置(会重启动集群)
tiup cluster reload mytidb_cluster

 

3.查看配置
mysql> show variables like '%connect%';
+-----------------------------------------------+-----------------+
| Variable_name | Value |
+-----------------------------------------------+-----------------+
| character_set_connection | utf8 |
| collation_connection | utf8_general_ci |
| connect_timeout | 10 |
| disconnect_on_expired_password | 1 |
| init_connect | |
| max_connect_errors | 100 |
| max_connections | 10000 |
| max_user_connections | 0 |
| performance_schema_session_connect_attrs_size | 512 |
+-----------------------------------------------+-----------------+
9 rows in set (0.02 sec)

posted @   slnngk  阅读(1172)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2021-05-18 es7.12集群部署(tsl认证)+nfs备份(生产)
点击右上角即可分享
微信分享提示