amh启动mysql_求助!Mysql无法启动.前辈们进来看看.

d409a6d83689deadfb8cdee53b4a0c39.gif

[综合话题]

求助!Mysql无法启动.前辈们进来看看.

46a3f5c46e17054f7ac5d1ba0ba1edf3.gif

铁牌会员

31.00 价值分

总 7,991 次阅读   7 张回复   Junway 发表于 2014-06-12 15:24:56

本帖最后由 Junway 于 2014-6-12 16:46 编辑

现在自己解决了..是因为使用wwwroot\domian\tmp下面产生了94G的临时文件.. 导致磁盘100%. 删掉tmp就好了.

另外请问管理员wwwroot\domian\tmp是什么?为什么会产生如此大的临时文件狠狠的扇了自己几个耳光.. 就因为这个问题. 纠结了整整一天. 全部注意力全几种到了mysql..到头来和MYSQL无关.. 以后排错得全方位排查了.

以下问题已解决

=============================================================

今天网站502 bad gateway. 简要检查下无果.遂直接重启服务器.结果mysql无法启用.百度谷歌几个小时无果.特向各位前辈请教.

现在唯一的奢求是能备份出数据库.. 重装mysql也无妨.

# mysql restart 错误如下

=============================================================

ERROR! MySQL server PID file could not be found!

Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/AY1405191822541604eaZ.pid).

#mysql -u root -p 错误如下:

=============================================================

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

# mysqld_safe &

错误如下

=============================================================

[1] 10781

140612 15:00:42 mysqld_safe Logging to '/usr/local/mysql/data/AY1405191822541604eaZ.err'.

140612 15:00:42 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

140612 15:00:43 mysqld_safe mysqld from pid file /usr/local/mysql/data/AY1405191822541604eaZ.pid ended

/tmp/mysql.sock 不存在此文件..

>ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock 无效

后发现mysql也不存在mysql.sock..

于是#find -name mysql.sock 发现mysql.sock丢失

于是放弃 想用mysqldump 导出数据后重装

# mysqldump -u root -p dbname> dbname.sql

mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect

/etc/my.cnf 配置如下:

=============================================================

[client]

port = 3306

socket = /tmp/mysql.sock

[mysqld]

default-storage-engine = MyISAM

port = 3306

socket = /tmp/mysql.sock

skip-external-locking

key_buffer_size = 16M

max_allowed_packet = 1M

table_open_cache = 64

sort_buffer_size = 512K

net_buffer_length = 8K

read_buffer_size = 256K

read_rnd_buffer_size = 512K

myisam_sort_buffer_size = 8M

log-bin = mysql-bin

binlog_format = mixed

server-id = 1

[mysqldump]

quick

[mysql]

no-auto-rehash

[myisamchk]

key_buffer_size = 20M

sort_buffer_size = 20M

read_buffer = 2M

write_buffer = 2M

[mysqlhotcopy]

interactive-timeout

/usr/local/mysql/data/AY1405191822541604eaZ.err 错误日志如下:

=============================================================

140612 14:55:47 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

140612 14:55:47 InnoDB: The InnoDB memory heap is disabled

140612 14:55:47 InnoDB: Mutexes and rw_locks use GCC atomic builtins

140612 14:55:47 InnoDB: Compressed tables use zlib 1.2.3

140612 14:55:47 InnoDB: Initializing buffer pool, size = 128.0M

140612 14:55:47 InnoDB: Completed initialization of buffer pool

140612 14:55:47 InnoDB: highest supported file format is Barracuda.

140612 14:55:47 InnoDB: Waiting for the background threads to start

140612 14:55:48 InnoDB: 5.5.34 started; log sequence number 1595685

06:55:48 UTC - mysqld got signal 11 ;

This could be because you hit a bug. It is also possible that this binary

or one of the libraries it was linked against is corrupt, improperly built,

or misconfigured. This error can also be caused by malfunctioning hardware.

We will try our best to scrape up some info that will hopefully help

diagnose the problem, but since we have already crashed,

something is definitely wrong and this may fail.

key_buffer_size=16777216

read_buffer_size=262144

max_used_connections=0

max_threads=151

thread_count=0

connection_count=0

It is possible that mysqld could use up to

key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 134092 K bytes of memory

Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0

Attempting backtrace. You can use the following information to find out

where mysqld died. If you see no messages after this, something went

terribly wrong...

stack_bottom = 0 thread_stack 0x40000

/usr/local/mysql/bin/mysqld(my_print_stacktrace+0x2e)[0x75a0ce]

/usr/local/mysql/bin/mysqld(handle_fatal_signal+0x41a)[0x64f57a]

/lib64/libpthread.so.0(+0xf710)[0x7ff321f6a710]

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains

information that should help you find out what is causing the crash.

140612 14:55:48 mysqld_safe mysqld from pid file /usr/local/mysql/data/AY1405191822541604eaZ.pid ended

评价: 这篇话题有价值吗?  没有 (0分)   有, 感谢 (1分)

2014-06-12 15:24:56 1

0009752cd06d11365c6486852b39563a.png

金牌会员

11307.70 价值分你是不是开日志了?

评价: 这篇话题有价值吗?  没有 (0分)   有, 感谢 (0分)

回复

2014-06-13 09:35:40 2

46a3f5c46e17054f7ac5d1ba0ba1edf3.gif

铁牌会员

31.00 价值分引用:

Yusky 发表于 2014-6-13 09:35 c7c442280b342fab4aa7ca907cb73dbe.gif

你是不是开日志了?

没有. 日志都是关闭的.

cb459bc722cdabb3dd001a30e12b523a.png

cb459bc722cdabb3dd001a30e12b523a.png

评价: 这篇话题有价值吗?  没有 (0分)   有, 感谢 (0分)

回复

2014-06-15 20:27:04 3

0009752cd06d11365c6486852b39563a.png

金牌会员

11307.70 价值分引用:

Junway 发表于 2014-6-15 20:27 c7c442280b342fab4aa7ca907cb73dbe.gif

没有. 日志都是关闭的.

要么就是被黑了。。。

评价: 这篇话题有价值吗?  没有 (0分)   有, 感谢 (0分)

回复

2014-06-15 23:18:47 5

46a3f5c46e17054f7ac5d1ba0ba1edf3.gif

铁牌会员

31.00 价值分引用:

Yusky 发表于 2014-6-15 23:18 c7c442280b342fab4aa7ca907cb73dbe.gif

要么就是被黑了。。。

今天又有80多G的日志啊.. 被黑不应该吧.

评价: 这篇话题有价值吗?  没有 (0分)   有, 感谢 (0分)

回复

2014-06-16 12:17:59 6

31a3f11bb94952a0e0fc9fa942dfda0c.png

金牌会员

15129.94 价值分/home/wwwroot/domain/tmp/是Php程序调用期间产生的临时文件

如果不行的话直接删,新建文件,授权不可写不可读

评价: 这篇话题有价值吗?  没有 (0分)   有, 感谢 (0分)

回复

2014-06-16 13:24:57 7

0c59b892a2502892632bf37b303e8131.png

创始人

97831.95 价值分amh不会有这么大的临时文件。

看下生成的都是些什么文件。

评价: 这篇话题有价值吗?  没有 (0分)   有, 感谢 (0分)

回复

2014-06-17 11:40:23 8

f2373512cfda055c666e0754116b1648.png

银牌会员

1669.33 价值分本帖最后由 zcom 于 2014-6-23 10:12 编辑

支持哈哈临时文件这事我还没遇到过,MYSQL的问题我遇到几次了,基本知道是怎么回事了,解决方法看我的帖子

评价: 这篇话题有价值吗?  没有 (0分)   有, 感谢 (0分)

回复

2014-06-22 20:41:37 9

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值