- 积分
- 198
- 威望
-
- 金钱
-
- 注册时间
- 2012-3-21
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
错误代码:- 170622 12:30:03 [Note] Plugin 'FEDERATED' is disabled.
- 170622 12:30:03 InnoDB: The InnoDB memory heap is disabled
- 170622 12:30:03 InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 170622 12:30:03 InnoDB: Compressed tables use zlib 1.2.7
- 170622 12:30:03 InnoDB: Initializing buffer pool, size = 32.0M
- InnoDB: mmap(34340864 bytes) failed; errno 12
- 170622 12:30:03 InnoDB: Completed initialization of buffer pool
- 170622 12:30:03 InnoDB: Fatal error: cannot allocate memory for the buffer pool
- 170622 12:30:03 [ERROR] Plugin 'InnoDB' init function returned error.
- 170622 12:30:03 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 170622 12:30:03 [ERROR] Unknown/unsupported storage engine: InnoDB
- 170622 12:30:03 [ERROR] Aborting
- 170622 12:30:03 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
- 170622 12:30:03 mysqld_safe mysqld from pid file /data/var/ebs-47166.pid ended
- 170622 12:31:02 mysqld_safe Starting mysqld daemon with databases from /data/var
- 170622 12:31:02 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.48) starting as process 29689 ...
- 170622 12:31:02 [Note] Plugin 'FEDERATED' is disabled.
- 170622 12:31:02 InnoDB: The InnoDB memory heap is disabled
- 170622 12:31:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 170622 12:31:02 InnoDB: Compressed tables use zlib 1.2.7
- 170622 12:31:02 InnoDB: Initializing buffer pool, size = 32.0M
- InnoDB: mmap(34340864 bytes) failed; errno 12
- 170622 12:31:02 InnoDB: Completed initialization of buffer pool
- 170622 12:31:02 InnoDB: Fatal error: cannot allocate memory for the buffer pool
- 170622 12:31:02 [ERROR] Plugin 'InnoDB' init function returned error.
- 170622 12:31:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 170622 12:31:02 [ERROR] Unknown/unsupported storage engine: InnoDB
- 170622 12:31:02 [ERROR] Aborting
- 170622 12:31:02 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
- 170622 12:31:02 mysqld_safe mysqld from pid file /data/var/ebs-47166.pid ended
复制代码 自动重启代码:- #!/bin/bash
- pgrep -x mysqld &> /dev/null
- if [ $? -ne 0 ]
- then
- echo "At time: `date` :MySQL error stop ." >> /home/wwwlogs/mysql_error_stop.log
- /etc/init.d/mysql start
- #echo "At time: `date` :MySQL server is stop."
- else
- echo "MySQL server is running ."
- fi
复制代码 |
|