Home > Database > Mysql Tutorial > mysql提示Changed limits: max_open_files: 2048 max_connection_MySQL

mysql提示Changed limits: max_open_files: 2048 max_connection_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:12:45
Original
1314 people have browsed it

在windows下安装Mysql系统日志出现max_open_files: 2048 max_connections: 510 table_cache: 764 类似错误是因为 max_connections 最大连接数和max_open_files、table_cache 不匹配。适当的降低max_connections 或调整其他两个数值

解决办法在 mysql bin > 中输入 mysql-nt --table_cache=764
mysql-nt --innodb_open_files=2048 即可!!
table_cache和max_connections 在my.ini 里可调
Changed limits: max_open_files: 2048 max_connections: 1024 table_cache: 507
max_connections=1024
table_cache=500
 

附:

以上是由于你的my.ini 或者my.cfg等等里面的 max_connections 和table_cache设置不对造成的。系统为你自动调整为相对比较接近的数值。
max_connections,table_cache不是越大越好。请参考以下公式进行匹配:

由于max_open_files是固定的,在windows里面只能是2048.

2048= max_connections+table_cache*2

原则上说来,只要设置好了一半就不会报错了,最好是后面设置为稍微小于2048,不要等于。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Can Windows be learned?
From 1970-01-01 08:00:00
0
0
0
Install PHP in windows environment
From 1970-01-01 08:00:00
0
0
0
zookeeper extension under windows
From 1970-01-01 08:00:00
0
0
0
Can I play vim happily on Windows?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template