当前位置:网站首页>How to solve startup failure due to insufficient MySQL memory
How to solve startup failure due to insufficient MySQL memory
2022-06-29 04:22:00 【Yisu cloud】
MySQL How to solve startup failure due to insufficient memory
This article mainly introduces MySQL How to solve the problem of insufficient memory startup failure , The content is detailed and easy to understand , The operation is simple and fast , It has certain reference value , I believe that after reading this article MySQL How to solve the problem of insufficient memory and startup failure will be learned in this article , Let's have a look .

1. start-up MySQL I have been unsuccessful , Check the error log /var/log/mysql/error.log

2. The main error messages are as follows : /var/log/mysql/error.log
[ERROR] InnoDB: mmap(136151040 bytes) failed; errno 12 [ERROR] InnoDB: Cannot allocate memory for the buffer pool [ERROR] InnoDB: Plugin initialization aborted with error Generic error [ERROR] Plugin 'InnoDB' init function returned error. [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. [ERROR] Failed to initialize plugins. [ERROR] Aborting
3. After the query, there is insufficient memory , Look at the memory : /var/log/mysql/error.log

increase swap Swap space to solve problems :
dd if=/dev/zero of=/swapfile bs=1M count=1024 mkswap /swapfile swapon /swapfile

4. Add auto mount : /var/log/mysql/error.log
In the file /etc/fstab Add /swapfile swap swap defaults 0 0 service mysql start Successful launch
5. remarks : Generate an empty file
dd if=/dev/zero of=1.txt bs=1M count=2 Generate an empty file of the specified size if= file name : Input file name of= file name : Output file name bs= Byte size count= Number
About “MySQL How to solve startup failure due to insufficient memory ” That's all for this article , Thank you for reading ! I'm sure you're right “MySQL How to solve startup failure due to insufficient memory ” Knowledge has a certain understanding , If you want to learn more , Welcome to the Yisu cloud industry information channel .
边栏推荐
- 赚钱的5个层次,你在哪一层?
- IDEA修改jvm内存
- How to merge upstream and downstream SQL data records
- Inftnews | metauniverse technology will bring a new shopping experience
- lua-protobuff emmy-lua 轮子
- LabVIEW displays Unicode characters
- [C language] address of stack memory associated with local variable 'num' returned
- 044. (2.13) add value to yourself
- Project development culture
- 基于可变参模板实现的线程池
猜你喜欢

HCIE-Security Day41:理论学习:信息收集与网络探测

要不是和阿里P7聊过,我也不知道自己是个棒槌

Daily practice - February 15, 2022

The five levels of making money, which level are you on?

1018 hammer scissors cloth

Blue Bridge Cup ruler method

SqlServer如何查询除去整列字段为null的结果

为什么说测试岗位是巨坑?8年测试人告诉你千万别上当

Build a simple website by yourself

Five thousand years of China
随机推荐
yolox出现 RuntimeError: DataLoader worker (pid(s) 17724, 1364, 18928) exited unexpectedly
Pytorch read / write file
1015 theory of virtue and talent
从零到一,教你搭建「以文搜图」搜索服务(一)
What is the dry goods microservice architecture? What are the advantages and disadvantages?
If I hadn't talked to Ali P7, I wouldn't know I was a mallet
NotImplementedError: Could not run torchvision::nms
PATH 与 LD_LIBRARY_PATH 的用法举例
Call snapstateon closed sou from Oracle CDC
C language -- branch structure
Apifox : 不仅是Api调试工具,更是开发团队的协作神器
SqlServer如何查询除去整列字段为null的结果
[C language] address of stack memory associated with local variable 'num' returned
选对学校,专科也能进华为~早知道就好了
[C language] explain the thread recycling function pthread_ join
1018 hammer scissors cloth
SEAttention 通道注意力机制
The last week! Summary of pre competition preparation for digital model American Games
My creation anniversary
1017 A除以B分