e8732 发表于 2016-9-21 18:56:55

mysql无法启动

启动时错误提示:
Starting MySQL. ERROR! The server quit without updating PID file


错误日志:
160921 18:45:38 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
2016-09-21 18:45:38 0 /usr/local/mysql/bin/mysqld (mysqld 5.6.33-log) starting as process 2937 ...
2016-09-21 18:45:38 2937 Plugin 'FEDERATED' is disabled.
2016-09-21 18:45:38 2937 InnoDB: Using atomics to ref count buffer pool pages
2016-09-21 18:45:38 2937 InnoDB: The InnoDB memory heap is disabled
2016-09-21 18:45:38 2937 InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-09-21 18:45:38 2937 InnoDB: Memory barrier is not used
2016-09-21 18:45:38 2937 InnoDB: Compressed tables use zlib 1.2.3
2016-09-21 18:45:38 2937 InnoDB: Using CPU crc32 instructions
2016-09-21 18:45:38 2937 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
2016-09-21 18:45:38 2937 InnoDB: Cannot allocate memory for the buffer pool
2016-09-21 18:45:38 2937 Plugin 'InnoDB' init function returned error.
2016-09-21 18:45:38 2937 Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-09-21 18:45:38 2937 Unknown/unsupported storage engine: InnoDB
2016-09-21 18:45:38 2937 Aborting

2016-09-21 18:45:38 2937 Binlog end
2016-09-21 18:45:38 2937 Shutting down plugin 'partition'
2016-09-21 18:45:38 2937 Shutting down plugin 'PERFORMANCE_SCHEMA'
2016-09-21 18:45:38 2937 Shutting down plugin 'ARCHIVE'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_SYS_DATAFILES'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_SYS_TABLESPACES'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_SYS_FOREIGN'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_SYS_FIELDS'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_SYS_COLUMNS'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_SYS_INDEXES'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_SYS_TABLESTATS'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_SYS_TABLES'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_FT_CONFIG'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_FT_BEING_DELETED'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_FT_DELETED'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_METRICS'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_BUFFER_PAGE'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_CMP_PER_INDEX'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_CMPMEM_RESET'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_CMPMEM'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_CMP_RESET'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_CMP'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_LOCK_WAITS'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_LOCKS'
2016-09-21 18:45:38 2937 Shutting down plugin 'INNODB_TRX'
2016-09-21 18:45:38 2937 Shutting down plugin 'BLACKHOLE'
2016-09-21 18:45:38 2937 Shutting down plugin 'CSV'
2016-09-21 18:45:38 2937 Shutting down plugin 'MyISAM'
2016-09-21 18:45:38 2937 Shutting down plugin 'MRG_MYISAM'
2016-09-21 18:45:38 2937 Shutting down plugin 'MEMORY'
2016-09-21 18:45:38 2937 Shutting down plugin 'sha256_password'
2016-09-21 18:45:38 2937 Shutting down plugin 'mysql_old_password'
2016-09-21 18:45:38 2937 Shutting down plugin 'mysql_native_password'
2016-09-21 18:45:38 2937 Shutting down plugin 'binlog'
2016-09-21 18:45:38 2937 /usr/local/mysql/bin/mysqld: Shutdown complete

160921 18:45:38 mysqld_safe mysqld from pid file /usr/local/mysql/data/mysql.pid ended

licess 发表于 2016-9-21 19:28:34

InnoDB: mmap(137363456 bytes) failed; errno 12
内存不够用了,你机器什么配置?

/etc/my.cnf 里 段里加上
performance_schema_max_table_instances=400
后应该会降低部分内存消耗
再吧innodb_buffer_pool_size 调小一些
页: [1]
查看完整版本: mysql无法启动