一聚教程网:一个值得你收藏的教程网站

热门教程

mysql报错:Out of memory (Needed 76016 bytes)问题

时间:2022-11-14 23:38:00 编辑:袖梨 来源:一聚教程网

检查mysqld配置my.conf

Out of memory (Needed 76016 bytes)问题

key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections

注:这台服务器一共了才3G内存:最终大至如下

key_buffer = 200M
key_buffer_size = 1294963200
#max_join_size = 4294967295
max_join_size = 1294967295
max_allowed_packet = 1M
#table_open_cache = 512
table_cache = 512
sort_buffer_size = 2294967295
read_buffer_size = 2147479552
#write_buffer_size = 4294967295
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M

当然如果运行出现php问题我们可以对php.ini中的几个参数进行操作

修改php.ini

如下的区域

max_execution_time = 120 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

重启apache或iis即可

热门栏目