当前位置:网站首页>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
边栏推荐
- qt--将程序打包--不要安装qt-可以直接运行
- Common operations of numpy on two-dimensional array
- body有8px的神秘边距
- 云原生应用开发之 gRPC 入门
- Dataworks duty table
- Anaconda3 tutorial on installing and adding Tsinghua image files
- Voice of users | understanding of gbase 8A database learning
- How does Matplotlib generate multiple pictures in turn & only save these pictures without displaying them in the compiler
- Call (import) in Jupiter notebook ipynb . Py file
- 3、多智能体强化学习
猜你喜欢

如何让导电滑环信号更好

About snake equation (5)

Gnuradio3.9.4 create OOT module instances

【目标跟踪】|atom

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

为什么更新了 DNS 记录不生效?

Matlab code about cosine similarity

About snake equation (3)

C language - modularization -clion (static library, dynamic library) use

QT--创建QT程序
随机推荐
Voice of users | understanding of gbase 8A database learning
How to fix the slip ring
Kafka connect synchronizes Kafka data to MySQL
Deep learning website
What kind of MES system is a good system
qt--將程序打包--不要安裝qt-可以直接運行
写一个纯手写的qt的hello world
Understanding of prior probability, posterior probability and Bayesian formula
COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况----几何模型的建立
Codeforces Round #643 (Div. 2)——B. Young Explorers
如果时间是条河
COMSOL - Construction of micro resistance beam model - final temperature distribution and deformation - establishment of geometric model
批次管控如何实现?MES系统给您答案
Tapdata 的 2.0 版 ,開源的 Live Data Platform 現已發布
The function of carbon brush slip ring in generator
Kafka-connect将Kafka数据同步到Mysql
About snake equation (1)
nacos-微服务网关Gateway组件 +Swagger2接口生成
Redux使用
Anaconda3 tutorial on installing and adding Tsinghua image files