当 MySQL 服务器停止或重新启动时,MEMORY 表中的数据会丢失。
我在 Amazon ec2 t1.micro 实例上运行 MEMORY 表,直到大约一个小时前,当我意识到我的所有 MEMORY 表都已被擦除时,一切都相对正常。
我没有重置服务器,它仍然运行良好,尽管在我的日志中我意识到 CPU 负载变得相当高,因为我似乎有点太用力地推动服务器。
4.98, 3.32, 2.22 (1,5,15)
崩溃前几分钟,CPU 系统负载平均值正在读取。
单核微实例上的高 CPU 负载是否有可能导致我的 MySQL 服务器“停止”并因此删除所有内存表?
谢天谢地,我有一个备份......这次我将重新启动,而不是如此努力地推动服务器。
我在下面复制了我的 MySQL error.log 文件尾端:
150511 21:14:39 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use$
150511 21:14:39 [Note] Plugin 'FEDERATED' is disabled.
150511 21:14:41 InnoDB: The InnoDB memory heap is disabled
150511 21:14:41 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150511 21:14:41 InnoDB: Compressed tables use zlib 1.2.8
150511 21:14:41 InnoDB: Using Linux native AIO
150511 21:14:41 InnoDB: Initializing buffer pool, size = 128.0M
150511 21:14:42 InnoDB: Completed initialization of buffer pool
150511 21:14:42 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150511 21:14: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...
150511 21:14:59 InnoDB: Waiting for the background threads to start
150511 21:15:00 InnoDB: 5.5.41 started; log sequence number 12053647257
150511 21:15:00 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
150511 21:15:00 [Note] - '127.0.0.1' resolves to '127.0.0.1';
150511 21:15:00 [Note] Server socket created on IP: '127.0.0.1'.
150511 21:15:01 [Note] Event Scheduler: Loaded 0 events
150511 21:15:01 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.41-0ubuntu0.14.04.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)
150511 21:15:17 [ERROR] /usr/sbin/mysqld: Table './phpmyadmin/pma_column_info' is marked as crashed and should be repaired
150511 21:15:17 [Warning] Checking table: './phpmyadmin/pma_column_info'
150511 21:15:18 [ERROR] /usr/sbin/mysqld: Table './phpmyadmin/pma_recent' is marked as crashed and should be repaired
150511 21:15:18 [Warning] Checking table: './phpmyadmin/pma_recent'
150511 21:15:18 [ERROR] /usr/sbin/mysqld: Table './phpmyadmin/pma_table_uiprefs' is marked as crashed and should be repaired
150511 21:15:18 [Warning] Checking table: './phpmyadmin/pma_table_uiprefs
这发生在我说 CPU 正在冲破屋顶的时候。我还不确定这一切意味着什么,但我假设这里的 mysql 服务器已重置。任何帮助,将不胜感激。