阿里云vps上mysql挂掉的解决办法
来源:互联网 发布:区域设置软件中文版 编辑:程序博客网 时间:2024/06/06 02:22
130728 6:50:14 [Note] Plugin 'FEDERATED' is disabled.130728 6:50:14 InnoDB: The InnoDB memory heap is disabled130728 6:50:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins130728 6:50:14 InnoDB: Compressed tables use zlib 1.2.3.4130728 6:50:14 InnoDB: Initializing buffer pool, size = 128.0MInnoDB: mmap(137363456 bytes) failed; errno 12130728 6:50:14 InnoDB: Completed initialization of buffer pool130728 6:50:14 InnoDB: Fatal error: cannot allocate memory for the buffer pool130728 6:50:14 [ERROR] Plugin 'InnoDB' init function returned error.130728 6:50:14 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.130728 6:50:14 [ERROR] Unknown/unsupported storage engine: InnoDB130728 6:50:14 [ERROR] Aborting130728 6:50:14 [Note] /usr/sbin/mysqld: Shutdown complete
解决方法:
1) 在 /etc/mysql/my.cnf 的 mysqld 下增加下面一句:
innodb_buffer_pool_size = 64M
还要设置一下swap分区,因为我的vps是没有swap分区的,通过fdisk -l
和 1mount
看不到swap的信息,需要手动添加一下。
2) 添加swap分区的步骤:
2.1) dd if=/dev/zero of=/swapfile bs=1M count=10242.2) mkswap /swapfile2.3) swapon /swapfile2.4) 添加这行: /swapfile swap swap defaults 0 0 到 /etc/fstab
阅读全文
0 0
- 阿里云vps上mysql挂掉的解决办法
- 阿里云vps上mysql挂掉的解决办法
- 阿里云VPS的初使用
- 阿里云服务器 mysql远程连接时,出现连接不上的解决办法
- VPS主机上MySQL数据库的优化
- VPS主机上MySQL数据库的优化
- 远程登录阿里云上的MySQL
- 远程登录阿里云上的MySQL
- 远程登录阿里云上的MySQL
- 阿里云上Mysql数据库的备份
- 阿里云mysql内存不足解决办法
- Tomcat在阿里云上启动慢的解决办法
- Tomcat在阿里云上启动慢的解决办法
- Tomcat在阿里云上启动慢的解决办法
- Tomcat在阿里云上启动慢的解决办法
- 阿里云香港vps亲测
- 使用国外的便宜vps,忘掉阿里,腾讯云
- 无法远程连接阿里云mysql数据库的解决办法
- Mysql数据库表结构优化
- 巧解HorizontalListView需求,支持多选。
- 在一个字符串中个找到只出现一次的第一个字符
- 数据集合的重用
- 前端_全选、反选、批量删除、表格
- 阿里云vps上mysql挂掉的解决办法
- Shell更改一般文件或目录权限的脚本
- QTableWidget常用技巧
- 使用API扩展应用功能必会的方法
- C语言宏高级用法 [总结]
- POI的简单学习
- 通过Anaconda安装TensorFlow环境
- bzoj 2530: [Poi2011]Party
- Android2.3解析Json出错