免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5858 | 回复: 3

mysql 启动时怎么会Out of memory 呢?一般是什么地方设得不对? [复制链接]

论坛徽章:
0
发表于 2007-04-09 10:54 |显示全部楼层
10可用积分
070408 21:27:18  mysqld started
070408 21:27:20  InnoDB: Started; log sequence number 0 3089809617
/usr/libexec/mysqld: Out of memory (Needed 237527040 bytes)
/usr/libexec/mysqld: Out of memory (Needed 178145280 bytes)
070408 21:27:20 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.27-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution

mysql 启动时怎么会Out of memory 呢?一般是什么地方设得不对?

论坛徽章:
0
发表于 2007-04-09 18:21 |显示全部楼层
my.cnf是怎么配置的?

论坛徽章:
0
发表于 2007-04-10 09:53 |显示全部楼层
google 了下。在freeBSD下好像有内存512的限制。LINUX没发现这样的解决办法。呵呵。

论坛徽章:
0
发表于 2007-04-11 00:09 |显示全部楼层
Out of memory

If you issue a query using the mysql client program and receive an error like the following one, it means that mysql does not have enough memory to store the entire query result:
mysql: Out of memory at line 42, 'malloc.c'
mysql: needed 8136 byte (8k), memory in use: 12481367 bytes (12189k)
ERROR 2008: MySQL client ran out of memory

To remedy the problem, first check whether your query is correct. Is it reasonable that it should return so many rows? If not, correct the query and try again. Otherwise, you can invoke mysql with the --quick option. This causes it to use the mysql_use_result() C API function to retrieve the result set, which places less of a load on the client (but more on the server).
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP