mysql - 启动错误InnoDB: mmap(137363456 bytes) failed; errno 1
来源:互联网 发布:优化行政审批 编辑:程序博客网 时间:2024/06/05 05:19
公司的服务器 mysql开起来 过段时间久宕机 后来开socket写聊天 也是开了基本上一会就宕机 查看服务器 是 total used free shared buffers cached ERROR! MySQL server PID file could not be found!
130716 17:09:15 mysqld_safe mysqld from pid file /var/mysql/data/AY1305070924544.pid ended
130716 17:09:52 mysqld_safe Starting mysqld daemon with databases from /var/mysql/data
InnoDB: mmap(137363456 bytes) failed; errno 12
130716 17:09:53 InnoDB: The InnoDB memory heap is disabled
130716 17:09:53 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130716 17:09:53 InnoDB: Compressed tables use zlib 1.2.3
130716 17:09:53 InnoDB: Initializing buffer pool, size = 128.0M
130716 17:09:53 InnoDB: Completed initialization of buffer pool
130716 17:09:53 InnoDB: highest supported file format is Barracuda.
130716 17:09:53 InnoDB: Waiting for the background threads to start
130716 17:09:54 InnoDB: 1.1.8 started; log sequence number 4703029
130716 17:09:54 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
130716 17:09:54 [Note] - '0.0.0.0' resolves to '0.0.0.0';
130716 17:09:54 [Note] Server socket created on IP: '0.0.0.0'.
130716 17:09:54 [Note] Event Scheduler: Loaded 0 events
130716 17:09:54 [Note] /usr/local/mysql-DMYSQL_DATADIR=/var/mysql-DMYSQL_UNIX_ADDR=/var/mysql/mysqld.sock/bin/mysqld: ready for
connections.
查看内存显示
[root@AY1305070924544 /]# free -m
Mem: 995 928 66 0 6 19
-/+ buffers/cache: 903 91
Swap: 0 0 0
重启错误提示
[root@AY1305070924544 /]# /etc/init.d/mysqld start
Starting MySQL. ERROR! The server quit without updating PID file (/var/mysql/data/AY1305070924544.pid).
[root@AY1305070924544 /]# /etc/init.d/mysqld restart
Starting MySQL. ERROR! The server quit without updating PID file (/var/mysql/data/AY1305070924544.pid).
这个其实日志里面说的很明白就是 mysql要占用内存的时候 物理内存不够用导致的 所有 vi /etc/my.cnf
[inonodb]
innodb_buffer_pool_size=64MB 把这个数值改小 高版本的默认是128mb 版本的默认是 8mb
0 0
- mysql - 启动错误InnoDB: mmap(137363456 bytes) failed; errno 1
- Mysql 5.5+ 错误InnoDB: mmap(136019968 bytes) failed; errno 12
- mysql – 启动错误InnoDB: mmap(XXXX bytes) failed; errno 12
- InnoDB: mmap(2197815296 bytes) failed; errno 12
- MYSQL启动错误之[ERROR] Failed to open log (file './mysql-bin.000039', errno 2)
- Kakfka启动报错: Native memory allocation (mmap) failed to map 1073741824 bytes ..解决方案
- mmap ENOMEM(errno 12) 错误
- rsync 命令错误:writefd_unbuffered failed to write 1 bytes [sender]
- rsync 命令错误:writefd_unbuffered failed to write 1 bytes [sender]
- mysql:failed,启动失败,mmap failed-Cannot allocate memory for the buffer pool
- MySql启动报错Failed to open log (file './mysql-bin.000232', errno 2)
- mysql 启动错误(InnoDB: Operating system error number 13 )
- (转载)mysql 启动错误(InnoDB: Operating system error number 13 )
- camera拍照出现Failed to mmap错误
- mysql innodB启动失败
- mysql错误InnoDB:Attemptedtoopenapreviouslyopenedtablespace.
- mysql errno: 150 错误 外键
- mysql errno: 150 错误 外键
- 计算机专业经典书籍
- 漫谈自动化测试(五)——实施过程
- 如何修改3389端口号
- 方便使用ffmpeg命令行工具
- 列表、集合与数组之间的转化
- mysql - 启动错误InnoDB: mmap(137363456 bytes) failed; errno 1
- 26讲学习,飞机粒子轨迹
- redhat拓展分区
- 连接可能没有启用或者计算机太忙(解决远程桌面无法连接)
- phpthink项目搭建流程经验
- ora-12154无法解析指定的连接标识符
- P2P投资理财可靠吗
- Golang学习笔记//序
- 漫谈自动化测试(六)——环境部署