12
返回列表 发新帖
楼主: yxyup

紧急,mysqld错误

[复制链接]
论坛徽章:
52
2015年新春福章
日期:2015-03-06 11:57:312012新春纪念徽章
日期:2012-02-13 15:12:252012新春纪念徽章
日期:2012-02-13 15:12:25生肖徽章2007版:龙
日期:2012-02-07 10:33:22生肖徽章2007版:龙
日期:2012-02-07 10:33:22生肖徽章2007版:龙
日期:2012-02-07 10:33:22生肖徽章2007版:龙
日期:2012-02-07 10:33:22生肖徽章2007版:龙
日期:2012-02-07 10:33:22生肖徽章2007版:龙
日期:2012-02-07 10:32:552012新春纪念徽章
日期:2012-02-07 09:59:35
11#
发表于 2008-8-15 11:12 | 只看该作者
原帖由 yxyup 于 2008-8-15 10:26 发表



是cp过来的



那你mysql库之前是什么版本的。。。。。要是跟现有版本相差太大(即有升级的),就不要直接CP,
要是有SP,FUN,TRI就考虑dump了,,否则就不要用老版本的mysql,自己再创建下权限就可以

使用道具 举报

回复
论坛徽章:
10
会员2007贡献徽章
日期:2007-09-26 18:42:102011新春纪念徽章
日期:2011-02-18 11:43:342010广州亚运会纪念徽章:帆船
日期:2010-11-13 17:33:442010年世界杯参赛球队:科特迪瓦
日期:2010-10-08 11:21:35ITPUB9周年纪念徽章
日期:2010-10-08 09:31:222009日食纪念
日期:2009-07-22 09:30:00生肖徽章2007版:猴
日期:2008-01-02 17:35:53生肖徽章2007版:鸡
日期:2008-01-02 17:35:53ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44ITPUB十周年纪念徽章
日期:2011-11-01 16:20:28
12#
发表于 2008-8-15 11:57 | 只看该作者
http://dev.mysql.com/doc/refman/ ... ivilege-tables.html

执行mysql_fix_privilege_tables.sql脚本
mysql> SOURCE share/mysql_fix_privilege_tables.sql

其实忽略这个错误也没啥大问题。

使用道具 举报

回复
论坛徽章:
106
2008新春纪念徽章
日期:2008-02-13 12:43:03ITPUB十周年纪念徽章
日期:2011-11-01 16:21:152012新春纪念徽章
日期:2012-01-04 11:51:222012新春纪念徽章
日期:2012-02-13 15:12:252012新春纪念徽章
日期:2012-02-13 15:12:252012新春纪念徽章
日期:2012-02-13 15:12:252012新春纪念徽章
日期:2012-02-13 15:12:252012新春纪念徽章
日期:2012-02-13 15:12:25版主4段
日期:2012-05-15 15:24:11ITPUB 11周年纪念徽章
日期:2012-10-09 18:07:31
13#
 楼主| 发表于 2008-8-15 12:35 | 只看该作者
现在是已经升级到了 5.0.27

但是问题依然存在

Number of processes running now: 0
080815 11:51:34  mysqld restarted
^G/usr/local/mysql/bin/mysqld: Out of memory (Needed 118763520 bytes)
^G/usr/local/mysql/bin/mysqld: Out of memory (Needed 89072640 bytes)
^G/usr/local/mysql/bin/mysqld: Out of memory (Needed 66803712 bytes)
^G/usr/local/mysql/bin/mysqld: Out of memory (Needed 50101248 bytes)
080815 11:51:47 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.0.27-standard-log'  socket: '/tmp/mysql.sock'  port: 3306  MySQL Community Edition - Standard (GPL)

Number of processes running now: 0
080815 12:12:19  mysqld restarted
080815 12:12:38 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.0.27-standard-log'  socket: '/tmp/mysql.sock'  port: 3306  MySQL Community Edition - Standard (GPL)

Number of processes running now: 0
080815 12:13:42  mysqld restarted
080815 12:13:46 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.0.27-standard-log'  socket: '/tmp/mysql.sock'  port: 3306  MySQL Community Edition - Standard (GPL)

Number of processes running now: 0
080815 12:15:26  mysqld restarted
^G/usr/local/mysql/bin/mysqld: Out of memory (Needed 118763520 bytes)
^G/usr/local/mysql/bin/mysqld: Out of memory (Needed 89072640 bytes)
^G/usr/local/mysql/bin/mysqld: Out of memory (Needed 66803712 bytes)
^G/usr/local/mysql/bin/mysqld: Out of memory (Needed 50101248 bytes)
080815 12:15:37 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.0.27-standard-log'  socket: '/tmp/mysql.sock'  port: 3306  MySQL Community Edition - Standard (GPL)

使用道具 举报

回复
论坛徽章:
10
会员2007贡献徽章
日期:2007-09-26 18:42:102011新春纪念徽章
日期:2011-02-18 11:43:342010广州亚运会纪念徽章:帆船
日期:2010-11-13 17:33:442010年世界杯参赛球队:科特迪瓦
日期:2010-10-08 11:21:35ITPUB9周年纪念徽章
日期:2010-10-08 09:31:222009日食纪念
日期:2009-07-22 09:30:00生肖徽章2007版:猴
日期:2008-01-02 17:35:53生肖徽章2007版:鸡
日期:2008-01-02 17:35:53ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44ITPUB十周年纪念徽章
日期:2011-11-01 16:20:28
14#
发表于 2008-8-15 13:04 | 只看该作者
Out of memory

key_buffer_size + tmp_table_size + (read_buffer_size + sort_buffer_size + read_rnd_buffer_size +join_buffer_size )*max_connections = ?

如果大于你的物理内存,就会出现这个问题。好好看看你的参数把

使用道具 举报

回复
论坛徽章:
106
2008新春纪念徽章
日期:2008-02-13 12:43:03ITPUB十周年纪念徽章
日期:2011-11-01 16:21:152012新春纪念徽章
日期:2012-01-04 11:51:222012新春纪念徽章
日期:2012-02-13 15:12:252012新春纪念徽章
日期:2012-02-13 15:12:252012新春纪念徽章
日期:2012-02-13 15:12:252012新春纪念徽章
日期:2012-02-13 15:12:252012新春纪念徽章
日期:2012-02-13 15:12:25版主4段
日期:2012-05-15 15:24:11ITPUB 11周年纪念徽章
日期:2012-10-09 18:07:31
15#
 楼主| 发表于 2008-8-15 13:20 | 只看该作者
原帖由 shengang34 于 2008-8-15 13:04 发表
Out of memory

key_buffer_size + tmp_table_size + (read_buffer_size + sort_buffer_size + read_rnd_buffer_size +join_buffer_size )*max_connections = ?

如果大于你的物理内存,就会出现这个问题。好好看看你的参数把




这个算出来,确实大于了物理内存, 但有得时候是,只是不停的重启.如下

Number of processes running now: 0
080815 13:07:43  mysqld restarted
080815 13:07:53 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.0.27-standard-log'  socket: '/tmp/mysql.sock'  port: 3306  MySQL Community Edition - Standard (GPL)



my.cnf

max_connections         = 500
max_connect_errors      = 100000
key_buffer              = 128M
myisam_sort_buffer_size = 51200000
join_buffer_size        = 2097152
read_buffer_size        = 4194304
sort_buffer_size        = 4194304
table_cache             = 1000
thread_cache_size       = 80
max_join_size           = 512000000
max_binlog_cache_size   = 512000000
tmp_table_size          = 102400000
max_heap_table_size     = 102400000
read_rnd_buffer_size    = 5242880
bulk_insert_buffer_size = 32M
thread_concurrency      = 2
query_cache_limit       = 4000000
query_cache_size        = 0
query_cache_type        = 1
wait_timeout            = 7200
interactive_timeout     = 7200
skip-innodb
skip-bdb
log-slow-queries
long_query_time=10

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表