linux下设置MySQL5.6最大连接数不生效

萧十x888 2016-05-16 04:17:01
在linux centos6.5 中通过修改mysql的my.cnf配置文件来设置最大连接数,但是无论怎么改,mysql的连接数最多就是214个,再多了就不变了,但是通过 set global max_connections=1000则可以修改成功,不知道为什么,求教。

my.cnf内容如下:

[mysqld]

lower_case_table_names=1
character-set-server=utf8
max_connections=490
tmp_table_size = 268435456
max_heap_table_size =134217728
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
basedir =/data/mysql
datadir =/data/mysql/data
# port = .....
# server_id = .....
# socket = .....

# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION
...全文
850 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
errinyikeke 2017-02-28
  • 打赏
  • 举报
回复
请问,解决了么,一样的问题?
rocker_one 2016-10-19
  • 打赏
  • 举报
回复
楼主,问题解决了吗?我这边也碰到跟你一样的问题,正在苦恼
萧十x888 2016-05-16
  • 打赏
  • 举报
回复
引用 1 楼 wmxcn2000 的回复:
linux 的信号量设置了吗?


没有设置过,默认的参数值如下图:
卖水果的net 2016-05-16
  • 打赏
  • 举报
回复
linux 的信号量设置了吗?

22,209

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧