mysql在启动的时候总是报
2015-06-04 14:44:21 12771 [Note] InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
2015-06-04 14:44:21 12771 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
查看了一下内存
total used free shared buffers cached
Mem: 994 524 470 0 4 28
-/+ buffers/cache: 491 503
Swap: 0 0 0
还剩400多M,其实是够用的,不知道为什么无法allocate,然后想修改innodb_buffer_poo_size
[mysqld]
datadir = /data/mysqldb
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
explicit_defaults_for_timestamp = true
[innodb]
innodb_buffer_pool_size = 60M
重新启动的时候还是显示
2015-06-04 15:00:21 12946 [Note] InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
2015-06-04 15:00:21 12946 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
另外我启动的时候手动指定变量也无效
/etc/init.d/mysqld start innodb-buffer-pool-size 60M
2015-06-04 15:06:55 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.6.25) starting as process 13279 ...
2015-06-04 15:06:55 13279 [Note] Plugin 'FEDERATED' is disabled.
2015-06-04 15:06:55 13279 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-06-04 15:06:55 13279 [Note] InnoDB: The InnoDB memory heap is disabled
2015-06-04 15:06:55 13279 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-06-04 15:06:55 13279 [Note] InnoDB: Memory barrier is not used
2015-06-04 15:06:55 13279 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-06-04 15:06:55 13279 [Note] InnoDB: Using CPU crc32 instructions
2015-06-04 15:06:55 13279 [Note] InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
2015-06-04 15:06:55 13279 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2015-06-04 15:06:55 13279 [ERROR] Plugin 'InnoDB' init function returned error.
2015-06-04 15:06:55 13279 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
/usr/local/mysql/bin/mysqld: Too many arguments (first extra is 'innodb-buffer-pool-size').
Use --verbose --help to get a list of available options
2015-06-04 15:06:55 13279 [ERROR] Aborting
请教大侠指点一下问题可能出现在哪里?