130726 00:06:05 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
2013-07-26 00:06:06 29694 [Note] Plugin 'FEDERATED' is disabled.
2013-07-26 00:06:06 29694 [Note] InnoDB: The InnoDB memory heap is disabled
2013-07-26 00:06:06 29694 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2013-07-26 00:06:06 29694 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-07-26 00:06:06 29694 [Note] InnoDB: Using Linux native AIO
2013-07-26 00:06:06 29694 [Note] InnoDB: Using CPU crc32 instructions
2013-07-26 00:06:06 29694 [Note] InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
2013-07-26 00:06:06 29694 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2013-07-26 00:06:06 29694 [ERROR] Plugin 'InnoDB' init function returned error.
2013-07-26 00:06:06 29694 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2013-07-26 00:06:06 29694 [ERROR] Unknown/unsupported storage engine: InnoDB
2013-07-26 00:06:06 29694 [ERROR] AbortingMySQLRed Hat

解决方案 »

  1.   

    innodb_buffer_pool分配的内存改小点
      

  2.   

    改mysql目录下的my.cnf文件就行吗?
      

  3.   

    改mysql目录下的my.cnf文件就行吗?
    是的  改了重新启动服务
      

  4.   

    2013-07-26 00:06:06 29694 [ERROR] InnoDB: Cannot allocate memory for the buffer pool问题在这里。
      

  5.   

    innodb_buffer_pool 太大了,可以修改my.cnf中[mysqld]节点下,innodb_buffer_pool_size的大小 ,如果是专门用来做mysql的服务器的话,可以设置为内存的60~80
      

  6.   

    改mysql目录下的my.cnf文件就行吗?
    是的  改了重新启动服务
    Installing MySQL system tables...2013-07-27 15:04:36 1266 [Note] InnoDB: The InnoDB memory heap is disabled
    2013-07-27 15:04:36 1266 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
    2013-07-27 15:04:36 1266 [Note] InnoDB: Compressed tables use zlib 1.2.3
    2013-07-27 15:04:36 1266 [Note] InnoDB: Using Linux native AIO
    2013-07-27 15:04:36 1266 [Note] InnoDB: Using CPU crc32 instructions
    2013-07-27 15:04:36 1266 [Note] InnoDB: Initializing buffer pool, size = 16.0M
    2013-07-27 15:04:36 1266 [Note] InnoDB: Completed initialization of buffer pool
    2013-07-27 15:04:37 1266 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
    2013-07-27 15:04:37 1266 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
    2013-07-27 15:04:37 1266 [Note] InnoDB: Database physically writes the file full: wait...
    2013-07-27 15:04:37 1266 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
    2013-07-27 15:04:39 1266 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
    2013-07-27 15:04:42 1266 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
    2013-07-27 15:04:42 1266 [Warning] InnoDB: New log files created, LSN=45781
    2013-07-27 15:04:42 1266 [Note] InnoDB: Doublewrite buffer not found: creating new
    2013-07-27 15:04:42 1266 [Note] InnoDB: Doublewrite buffer created
    2013-07-27 15:04:42 1266 [Note] InnoDB: 128 rollback segment(s) are active.
    2013-07-27 15:04:42 1266 [Warning] InnoDB: Creating foreign key constraint system tables.
    2013-07-27 15:04:42 1266 [Note] InnoDB: Foreign key constraint system tables created
    2013-07-27 15:04:42 1266 [Note] InnoDB: Creating tablespace and datafile system tables.
    2013-07-27 15:04:42 1266 [Note] InnoDB: Tablespace and datafile system tables created.
    2013-07-27 15:04:42 1266 [Note] InnoDB: Waiting for purge to start
    2013-07-27 15:04:42 1266 [Note] InnoDB: 5.6.12 started; log sequence number 0
    2013-07-27 15:04:42 1266 [Note] RSA private key file not found: /usr/local/mysql/data//private_key.pem. Some authentication plugins will not work.
    2013-07-27 15:04:42 1266 [Note] RSA public key file not found: /usr/local/mysql/data//public_key.pem. Some authentication plugins will not work.
    2013-07-27 15:04:43 1266 [Warning] InnoDB: Cannot open table mysql/innodb_table_stats from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
    ERROR: 1146  Table 'mysql.innodb_table_stats' doesn't exist
    2013-07-27 15:04:43 1266 [ERROR] Aborting2013-07-27 15:04:43 1266 [Note] Binlog end
    2013-07-27 15:04:43 1266 [Note] InnoDB: FTS optimize thread exiting.
    2013-07-27 15:04:43 1266 [Note] InnoDB: Starting shutdown...
    2013-07-27 15:04:45 1266 [Note] InnoDB: Shutdown completed; log sequence number 1600607
    2013-07-27 15:04:45 1266 [Note] ./bin/mysqld: Shutdown complete这是什么问题啊?