我是我的MySQL数据库的一些问题。
我configuration了数据库和其他服务(Apache,PHP)的服务器,并运行多个应用程序。
有两个问题。
第一:每天同时mysql失败,我必须去重新启动它。
第二:每次我连续多次重新加载网站mysql掉下来,再次需要重新启动。
140106 8:30:14 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use$ 140106 8:30:14 [Note] Plugin 'FEDERATED' is disabled. 140106 8:30:14 InnoDB: The InnoDB memory heap is disabled 140106 8:30:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins 140106 8:30:14 InnoDB: Compressed tables use zlib 1.2.3.4 140106 8:30:14 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(137363456 bytes) failed; errno 12 140106 8:30:14 InnoDB: Completed initialization of buffer pool 140106 8:30:14 InnoDB: Fatal error: cannot allocate memory for the buffer pool 140106 8:30:14 [ERROR] Plugin 'InnoDB' init function returned error. 140106 8:30:14 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 140106 8:30:14 [ERROR] Unknown/unsupported storage engine: InnoDB 140106 8:30:14 [ERROR] Aborting 140106 8:30:14 [Note] /usr/sbin/mysqld: Shutdown complete
我的数据库有什么问题?
由于RAM短缺,看起来像mysql故障。 可能是由cron启动的一些应用程序消耗所有的内存? 这可以解释为什么错误同时发生,以及为什么MySQL可以启动一段时间。
这看起来像是一个内存问题。 要么增加更多的RAM,要么降低innodb缓冲池的大小。
在my.cnf中是这样的:
[mysqld] innodb_buffer_pool_size = 64M