前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >IEE修改最大连接数

IEE修改最大连接数

作者头像
Alfred Zhao
发布2022-05-06 14:11:40
1.6K0
发布2022-05-06 14:11:40
举报

IEE版本:5.1.40

1.查看当前IEE最大连接数(缺省值)

代码语言:javascript
复制
mysql> show variables like 'max_connections';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 151   |
+-----------------+-------+
1 row in set (0.00 sec)

2.停库,修改最大连接数为300

常规停库:

代码语言:javascript
复制
#/etc/init.d/mysql-ib stop

常规停不了的话就只能强制杀进程:

代码语言:javascript
复制
# ps -ef|grep mysql|grep -v grep|awk '{print $2}'|xargs kill -9 

# vi /etc/my-ib.cnf  加入配置max_connections = 300

代码语言:javascript
复制
# Example Infobright config file  (mysql server).
# In this file, you can use all long options that mysql supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password       = your_password
port            = 5029
socket          = /tmp/mysql-ib.sock
loose-local-infile=1

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
basedir = /usr/local/infobright-4.0.6-x86_64
datadir = /usr2/iee/data
log-error = /usr2/iee/data/bh.err
log-output = FILE
#general_log=1
#general_log_file=path-of-datadir/general_query.log
#slow_query_log=1
#slow_query_log_file=path-of-datadir/slow_query.log
max_connections = 300
port            = 5029
socket          = /tmp/mysql-ib.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 500M
table_cache = 16
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 8M
net_buffer_length = 8K
thread_cache_size = 32
thread_stack = 512K
query_cache_size = 8M
query_cache_type=0
# Try number of CPU cores*4 for thread_concurrency
thread_concurrency = 8
#core-file

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
"/etc/my-ib.cnf" 90L, 2112C written 

3.启动数据库,查看最大连接数已成功修改为300

代码语言:javascript
复制
#/etc/init.d/mysql-ib start
代码语言:javascript
复制
mysql> show variables like 'max_connections';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 300   |
+-----------------+-------+
1 row in set (0.00 sec)
mysql>
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2014-09-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
数据库
云数据库为企业提供了完善的关系型数据库、非关系型数据库、分析型数据库和数据库生态工具。您可以通过产品选择和组合搭建,轻松实现高可靠、高可用性、高性能等数据库需求。云数据库服务也可大幅减少您的运维工作量,更专注于业务发展,让企业一站式享受数据上云及分布式架构的技术红利!
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档