解决MySQL : InnoDB: Cannot allocate memory for the buffer pool
来源:互联网 发布:章鱼彩票 知乎 编辑:程序博客网 时间:2024/05/04 06:49
今天刚刚到公司,早饭还没吃,同事就告诉我,我们项目测试环境中的mysql 挂掉了。
没办法,先解决问题:
第一步:重启mysql
#service mysql restart //可是mysql 服务器相等的不给力,还是没有启动。
提示错误信息如下:
根据重启mysql 反馈的问题:(拿出解决该问题的三板斧)
第一板斧:查询是否 存在mysql 僵尸进程
#ps -ef |grep mysql*
关闭相关的mysql 僵尸进程。
第二板斧:判断相关的进程文件权限不够(/db/mysql/data/iZ94ax97oadZ.pid)
修改对应文件夹的相关文件读写权限(“chmod -R 755 /db/mysql/data”)
第三板斧:mysql 数据库重置:具体请参考:mysql 数据库权限重置
但是,我的三板斧用完了,但是mysql 还是没有任何反应。
发大招:检查mysql错误日志信息
#cat /var/log/mysql/error.log
我发现了如下的错误信息:
根据上面的提示:InnDB存储引擎分配内存资源问题。
我立即修改mysql的配置文件信息(/etc/my.cnf)
修改的参数如下:
innodb_buffer_pool_size =128Mkey_buffer_size =120M重启mysql 问题解决哒。
0 0
- 解决MySQL : InnoDB: Cannot allocate memory for the buffer pool
- InnoDB: Cannot allocate memory for the buffer pool
- Mysql cannot allocate memory for the buffer pool 解决方法
- 【数据库】InnoDB: Fatal error: cannot allocate memory for the buffer pool
- Fatal error: cannot allocate memory for the buffer pool
- mysql无法启动——cannot allocate the memory for the buffer pool
- mysql错误日志之cannot allocate the memory for the buffer pool
- mysql启动报错cannot allocate memory for the buffer pool处理
- mysql:failed,启动失败,mmap failed-Cannot allocate memory for the buffer pool
- The InnoDB Buffer Pool
- MySQL Dumping and Reloading the InnoDB Buffer Pool(MySQLdump和重载InnoDB缓冲池)
- 8.10.1 The InnoDB Buffer Pool
- 8.10.1 The InnoDB Buffer Pool
- 14.4.3.1 The InnoDB Buffer Pool
- 14.6.3.1 The InnoDB Buffer Pool
- mysql控制innodb buffer pool刷新
- 理解show engine innodb status之BUFFER POOL AND MEMORY
- 退役笔记N#MySQL = lambda sql : sql + ' Source Code 4 Secondary Buffer Pool For InnoDB '
- Supervisor学习心得
- 高仿ios钉钉菜单展示效果
- 判断手机有无外置sd卡
- 读《摄影师的故事》
- 定风波·南海归赠王定国侍人寓娘
- 解决MySQL : InnoDB: Cannot allocate memory for the buffer pool
- 编译KlayGE,UniversalDXSDK项目报错
- UVALive 6092 - Catching Shade in Flatland(线段和圆交线段最大长度)
- javascript Date format(js日期格式化)
- 7.2获取资源
- IOS生成同时支持armv7,armv7s,i386,x86_64,arm64的静态库.a文件
- Energy Conversion and Management (ECM) 的审稿周期
- STL提取参数模版的类型
- 硬币问题