您当前位置: 首页 »

mysql备忘录

分类目录归档: mysql备忘录

【mysql、innodb】mysql启动失败,出现crash

不知道什么时候,vps上面的mysql不启动了,后来果断来了个apt-get upgrade。还是无解,发现mysql.err为空。怎么弄头看不明白。

后来查看/var/log/syslog,发现如下记录:

May 28 07:36:53 emhct mysqld: 160528 7:36:53 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. P$
May 28 07:36:53 emhct mysqld: 160528 7:36:53 [Note] /usr/sbin/mysqld (mysqld 5.5.49-0+deb7u1) starting as process 2208 …
May 28 07:36:53 emhct mysqld: 160528 7:36:53 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future$
May 28 07:36:53 emhct mysqld: 160528 7:36:53 [Note] Plugin ‘FEDERATED’ is disabled.
May 28 07:36:53 emhct mysqld: 160528 7:36:53 InnoDB: The InnoDB memory heap is disabled
May 28 07:36:53 emhct mysqld: 160528 7:36:53 InnoDB: Mutexes and rw_locks use GCC atomic builtins
May 28 07:36:53 emhct mysqld: 160528 7:36:53 InnoDB: Compressed tables use zlib 1.2.7
May 28 07:36:53 emhct mysqld: 160528 7:36:53 InnoDB: Using Linux native AIO
May 28 07:36:53 emhct mysqld: 160528 7:36:53 InnoDB: Initializing buffer pool, size = 128.0M
May 28 07:36:53 emhct mysqld: 160528 7:36:53 InnoDB: Completed initialization of buffer pool
May 28 07:36:53 emhct mysqld: 160528 7:36:53 InnoDB: highest supported file format is Barracuda.
May 28 07:36:53 emhct mysqld: InnoDB: The log sequence number in ibdata files does not match
May 28 07:36:53 emhct mysqld: InnoDB: the log sequence number in the ib_logfiles!
May 28 07:36:53 emhct mysqld: 160528 7:36:53 InnoDB: Database was not shut down normally!
May 28 07:36:53 emhct mysqld: InnoDB: Starting crash recovery.
May 28 07:36:53 emhct mysqld: InnoDB: Reading tablespace information from the .ibd files…
May 28 07:36:53 emhct mysqld: InnoDB: Restoring possible half-written data pages from the doublewrite
May 28 07:36:53 emhct mysqld: InnoDB: buffer…
May 28 07:36:53 emhct mysqld: 160528 7:36:53 InnoDB: ERROR: We were only able to scan the log up to
May 28 07:36:53 emhct mysqld: InnoDB: 16701665280, but a checkpoint was at 16701665306.
May 28 07:36:53 emhct mysqld: InnoDB: It is possible that the database is now corrupt!
May 28 07:36:53 emhct mysqld: 160528 7:36:53 InnoDB: Assertion failure in thread 3064944864 in file fut0lst.ic line 83
May 28 07:36:53 emhct mysqld: InnoDB: Failing assertion: addr.page == FIL_NULL || addr.boffset >= FIL_PAGE_DATA

 

mysql居然crash了,后来网上了一下,发现好像是innodb顺坏了,简单扫描了mysql官方文档,看的云里雾里。

最终,把mysql数据库存放目录下的ibdata1、ib_*文件删除后,mysql正常启动。

2016-05-28 | | linux-shell, mysql备忘录, shell, vps总结

【mysql、innodb】mysql启动失败,出现crash已关闭评论

目标的再一次确立-mysql学习开始了(篇)

    由于这次项目的推动下,我终于开始了mysql的学习。呵呵。

    这次是mysql/php并行学习。其实我觉得就php/mysql学习来说是相当的枯燥的,但是加上实际动手操作,那就是要有趣的很多。并且如果我2者换着学习的话,应该不是一般的效率。

    与此同时的就是和计算机关系不大的一些学习,同时也是专业基础课的学习,也是为以后打基础,还是目前我需要到的知识。

    现在要学习的就是,电磁波发射机(具有固有频率震荡),市网电压整流为直流稳压输出,并行开始。还有一个就是数学和英语并行的加强。不管考验能不能成功,至少我要去努力,我们专业还是要用到这些东西。

   前一段时间虽然是在学习着,但是事实上来说还是在混日子,加上感冒状态等问题。所以很多东西都是搁在那里,停了很久了。这次是自己再一次确立目标,也就是说,无论别人怎么样,还是要一定坚持住自己的目标走下去。要不然永远只会成为别人的食物。
    来句不地道的英语,go on doing~~~~开始了,无论怎么样,明天开始至少不要在烂费时间了,哪怕就是在干别的。

2007-10-03 | | mysql备忘录

目标的再一次确立-mysql学习开始了(篇)已关闭评论