当前位置:网站首页>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
边栏推荐
- 液压旋转接头的使用事项
- Usage of hydraulic rotary joint
- 用户之声 | 对于GBase 8a数据库学习的感悟
- Mat file usage
- 生态 | 湖仓一体的优选:GBase 8a MPP + XEOS
- Codeforces Round #643 (Div. 2)——B. Young Explorers
- Anaconda3 download address Tsinghua University open source software mirror station
- 从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
- The persistence mode of redis - RDB and AOF persistence mechanisms
- 碳刷滑环在发电机中的作用
猜你喜欢
How to make the conductive slip ring signal better
【SolidWorks】修改工程图格式
STM32GPIO口的工作原理
[SolidWorks] modify the drawing format
Redis cluster
2、TD+Learning
qt-使用自带的应用框架建立--hello world--使用min GW 32bit
Remote sensing contribution experience sharing
Js中forEach map无法跳出循环问题以及forEach会不会修改原数组
Gnuradio 3.9 using OOT custom module problem record
随机推荐
碳刷滑环在发电机中的作用
腾讯游戏客户端开发面试 (Unity + Cocos) 双重轰炸 社招6轮面试
如何制作企业招聘二维码?
Graphic network: uncover the principle behind TCP's four waves, combined with the example of boyfriend and girlfriend breaking up, which is easy to understand
MySQL数据库(2)
Codeforces Round #643 (Div. 2)——B. Young Explorers
日志特征选择汇总(基于天池比赛)
Anaconda3 download address Tsinghua University open source software mirror station
SQLite3 data storage location created by Android
Application of slip ring in direct drive motor rotor
How does Matplotlib and PIL image integrate and save multiple pictures into one picture
Optimization of ecological | Lake Warehouse Integration: gbase 8A MPP + xeos
php 获取音频时长等信息
快速熟知XML解析
Qt - - Packaging Programs - - Don't install Qt - can run directly
Redis集群
如果时间是条河
【目标跟踪】|DiMP: Learning Discriminative Model Prediction for Tracking
Codeforces Round #643 (Div. 2)——B. Young Explorers
Codeforces Round #633 (Div. 2) B. Sorted Adjacent Differences