首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MySql服务器未启动

MySql服务器未启动
EN

Stack Overflow用户
提问于 2013-11-21 17:01:24
回答 2查看 15.1K关注 0票数 2

我的机器在没有正确关机的情况下关机后,MySQL服务器无法启动。它显示了以下消息。

代码语言:javascript
复制
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]

日志文件包含以下内容。问题的根本原因是什么?如何从它中恢复过来?

代码语言:javascript
复制
131121 14:06:54 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
131121 14:11:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
131121 14:11:42  InnoDB: Initializing buffer pool, size = 8.0M
131121 14:11:42  InnoDB: Completed initialization of buffer pool
InnoDB: Log scan progressed past the checkpoint lsn 17 3015197486
131121 14:11:42  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Error: tried to read 1048576 bytes at offset 0 1048576.
InnoDB: Was only able to read 45056.
InnoDB: Fatal error: cannot read from file. OS error number 17.
131121 14:11:55  InnoDB: Assertion failure in thread 139714140956640 in file os/os0file.c line 2299
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
08:41:55 UTC - mysqld got signal 6 ;
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=8384512
read_buffer_size=131072
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 = 338324 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/libexec/mysqld(my_print_stacktrace+0x29) [0x84c049]
/usr/libexec/mysqld(handle_fatal_signal+0x483) [0x6a0fa3]
/lib64/libpthread.so.0() [0x35d960f500]
/lib64/libc.so.6(gsignal+0x35) [0x35d8e328a5]
/lib64/libc.so.6(abort+0x175) [0x35d8e34085]
/usr/libexec/mysqld(os_aio_simulated_handle+0) [0x78fdb0]
/usr/libexec/mysqld(fil_io+0x1eb) [0x763a6b]
/usr/libexec/mysqld(trx_sys_doublewrite_init_or_restore_pages+0x194) [0x7d3b84]
/usr/libexec/mysqld(recv_scan_log_recs+0x524) [0x786ad4]
/usr/libexec/mysqld() [0x78743a]
/usr/libexec/mysqld(recv_recovery_from_checkpoint_start+0x566) [0x787ca6]
/usr/libexec/mysqld(innobase_start_or_create_for_mysql+0x11e7) [0x7c3c17]
/usr/libexec/mysqld() [0x72bacb]
/usr/libexec/mysqld(ha_initialize_handlerton(st_plugin_int*)+0x31) [0x694bd1]
/usr/libexec/mysqld() [0x713b7b]
/usr/libexec/mysqld(plugin_init(int*, char**, int)+0x6e4) [0x715e74]
/usr/libexec/mysqld() [0x5bd752]
/usr/libexec/mysqld(main+0x1b3) [0x5c0033]
/lib64/libc.so.6(__libc_start_main+0xfd) [0x35d8e1ecdd]
/usr/libexec/mysqld() [0x508ac9]
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.
131121 14:11:55 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
EN

回答 2

Stack Overflow用户

发布于 2013-11-21 17:05:31

终止MySQl进程或重新安装它。

票数 3
EN

Stack Overflow用户

发布于 2013-11-21 17:17:56

尝试执行以下步骤:

  1. 将还原您对日志文件大小所做的任何配置更改,并再次启动
  2. MySQL。在您运行的MySQL: SET innodb_fast_shutdown=0;
  3. Stop MySQL中,将配置更改为日志文件大小
  4. 删除两个日志文件。
  5. MySQL。它会抱怨缺少日志文件,但它会创建日志文件,一切都会好起来的。

https://serverfault.com/questions/104014/innodb-error-log-file-ib-logfile0-is-of-different-size

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20116425

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档