MySql启动报错,无法更新PID文件
2017-08-10 20:22
323 查看
MySql启动报错
Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql..)
1,查看错误日志
2017-08-10 19:38:14 31865 [Note] InnoDB: Initializing buffer pool, size = 50.0M
InnoDB: mmap(53657600 bytes) failed; errno 12
2017-08-10 19:38:14 31865 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2017-08-10 19:38:14 31865 [ERROR] Plugin 'InnoDB' init function returned error.
2017-08-10 19:38:14 31865 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-08-10 19:38:14 31865 [ERROR] Unknown/unsupported storage engine: InnoDB
2017-08-10 19:38:14 31865 [ERROR] Aborting
2,查看空间使用量
free -ml
total used free shared buffers cached
Mem: 608476 565044 43432 0 1284 53996
-/+ buffers/cache: 509764 98712
Swap: 0 0 0
发现Swap 无可用空间(由于本人用的京东云最低配1C1G1M)
3,增加Swap空间
dd if=/dev/zero of=/home/swap bs=1024 count=512000
/sbin/mkswap /home/swap
再接着使用这个swap分区。使其成为有效状态。
/sbin/swapon /home/swap
4,重启Mysql
service mysql restart
ps:my.cnf
Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql..)
1,查看错误日志
2017-08-10 19:38:14 31865 [Note] InnoDB: Initializing buffer pool, size = 50.0M
InnoDB: mmap(53657600 bytes) failed; errno 12
2017-08-10 19:38:14 31865 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2017-08-10 19:38:14 31865 [ERROR] Plugin 'InnoDB' init function returned error.
2017-08-10 19:38:14 31865 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-08-10 19:38:14 31865 [ERROR] Unknown/unsupported storage engine: InnoDB
2017-08-10 19:38:14 31865 [ERROR] Aborting
2,查看空间使用量
free -ml
total used free shared buffers cached
Mem: 608476 565044 43432 0 1284 53996
-/+ buffers/cache: 509764 98712
Swap: 0 0 0
发现Swap 无可用空间(由于本人用的京东云最低配1C1G1M)
3,增加Swap空间
dd if=/dev/zero of=/home/swap bs=1024 count=512000
/sbin/mkswap /home/swap
再接着使用这个swap分区。使其成为有效状态。
/sbin/swapon /home/swap
4,重启Mysql
service mysql restart
ps:my.cnf
相关文章推荐
- Mysql无法更新PID文件
- 删除/var/lib/mysql-bin.000*文件 (二进制更新文件)导致mysql无法启动
- 删除/var/lib/mysql-bin.000*文件 (二进制更新文件)导致mysql无法启动
- MySQL之前一直正常使用,更新了一下系统之后出现“MySQL 服务无法启动,发生系统错误 1067 ”
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- MySQL中配置文件my.cnf因权限问题导致无法启动的解决方法
- mysql不同端口,不同配置文件,不同pid启动
- 更新Yosemite后MySQL无法启动
- 手工删除mysql-bin.000002等文件导致mysql无法启动问题
- mysql 被360杀毒软件删除启动文件导致无法启动
- mysql 服务无法启动,错误代码2:无法找到指定文件
- mysql无法启动,报错 Can't start server: can't create PID file: No space left on device
- MySQL之——表数据文件损坏导致数据库无法启动
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- mysql启动失败:不能创建pid文件
- mysql无法启动ERROR! MySQL is running but PID file could not be found
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- MySQL5.7改配置文件服务无法启动解决方法
- Mysql挂掉后无法重启报pid文件丢失的解决方法