当前位置:网站首页>How mysql/mariadb generates core files
How mysql/mariadb generates core files
2022-07-08 01:46:00 【Yabingshi】
1、 open linux Of core File configuration
ulimit -c unlimited
2、 Modify the configuration file , add to core_file To configure ( remarks : Configure in [mysqld] below ), And restart the database
3、 To configure suid_dumpable( mysql Usually with suid Mode start )
echo 2 >/proc/sys/fs/suid_dumpable
4、 Set up core File storage directory and set full control permissions
mkdir /data/core && chmod 777 /data/core && echo "/data/core/core" > /proc/sys/kernel/core_pattern
# simulation mysql Of crash scene , Execute the following command
kill -SEGV Database process number
Be careful : open core There are two risks after configuration
1、 Disk space may be full
---- Because it will mysql server All memory information of is exported to core In file , Include buffer pool The content in , There may be dozens of hundreds G size
2、mysql appear crash After starting, the speed will be slow
---- Because you need to export a large amount of data to core In file , Therefore, the startup speed will be much slower .
-- This article refers to mysql core Correct opening posture of files - JavaShuo
边栏推荐
- Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
- Redux使用
- 能力贡献 GBASE三大解决方案入选“金融信创生态实验室-金融信创解决方案(第一批)”
- Coordinate conversion of one-dimensional array and two-dimensional matrix (storage of matrix)
- Call (import) in Jupiter notebook ipynb . Py file
- [SolidWorks] modify the drawing format
- Gnuradio operation error: error thread [thread per block [12]: < block OFDM_ cyclic_ prefixer(8)>]: Buffer too small
- 从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
- QT--创建QT程序
- Kafka-connect将Kafka数据同步到Mysql
猜你喜欢

3、多智能体强化学习

LeetCode 练习——剑指 Offer 36. 二叉搜索树与双向链表

QT build with built-in application framework -- Hello World -- use min GW 32bit

Remote sensing contribution experience sharing

Problems of font legend and time scale display of MATLAB drawing coordinate axis

Working principle of stm32gpio port

The persistence mode of redis - RDB and AOF persistence mechanisms

Understanding of maximum likelihood estimation

STM32GPIO口的工作原理

3. Multi agent reinforcement learning
随机推荐
Is it safe to open an account on your mobile phone for small amount of stock speculation?
Apache多个组件漏洞公开(CVE-2022-32533/CVE-2022-33980/CVE-2021-37839)
COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况---材料的添加
ArrayList源码深度剖析,从最基本的扩容原理,到魔幻的迭代器和fast-fail机制,你想要的这都有!!!
How to fix the slip ring
The solution of frame dropping problem in gnuradio OFDM operation
如果时间是条河
正则表达式
COMSOL - Construction of micro resistance beam model - final temperature distribution and deformation - establishment of geometric model
Codeforces Round #633 (Div. 2) B. Sorted Adjacent Differences
Application of slip ring in direct drive motor rotor
由排行榜实时更新想到的数状数值
Call (import) in Jupiter notebook ipynb . Py file
Scalar / vector / matrix derivation method
Understanding of expectation, variance, covariance and correlation coefficient
QT -- package the program -- don't install qt- you can run it directly
【目标跟踪】|DiMP: Learning Discriminative Model Prediction for Tracking
Anaconda3 tutorial on installing and adding Tsinghua image files
How does Matplotlib and PIL image integrate and save multiple pictures into one picture
Introduction to natural language processing (NLP) based on transformers