当前位置:网站首页>MySQL database error The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
MySQL database error The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
2022-08-05 08:09:00 【nihui123】
Introduction
Because the server is powered off, the database cannot be connected. I found a lot of examples on the Internet. What permissions are not enough, and what needs to run the initialization script?They did not solve the problem in a timely and fast manner, but brought more problems.
As shown in the figure, this error is reported as soon as the database service is started.Checked for a long time

Solutionp>
Directly find the my.cnf file in the /etc directory and replace the following configuration into it.Then modify it according to your own directory configuration
[mysqld]bind-address=0.0.0.0port=3306user=mysql## This place is modified to the path of personal configurationbasedir=/usr/local/mysqldatadir=/data/mysqlsocket=/tmp/mysql.socklog-error=/data/mysql/mysql.errpid-file=/data/mysql/mysql.pid#character configcharacter_set_server=utf8mb4symbolic-links=0explicit_defaults_for_timestamp=trueOne thing to note here is that if the configuration is not appropriate, the following error will appear, but don't worry, there must be a pid file under the path you configured.So either specify the file directly or delete it. After the database service is started, it will be recreated.

Finally perfect launch

The method is real and effective, if it's not suitable, please @blogger in the comment area, the blogger must help solve it!
边栏推荐
- DataFrame在指定位置插入行和列
- Nn. Unfold and nn. The fold
- 力扣刷题八月第一天
- SVG big fish eat small fish animation js special effects
- 彩绘漂亮MM集
- YOLOv3 SPP理论详解(包括CIoU及Focal loss)
- 游戏模拟器成了外挂帮凶,灰产对抗再升级
- 图扑软件与华为云共同构建新型智慧工厂
- MM上街前的折腾(有趣)
- Basic introduction of stack and queue and C language implementation of functions such as creation, destruction, entry and exit, counting the number of elements, viewing elements, etc., as well as stac
猜你喜欢
随机推荐
Chapter 12 贝叶斯网络
Redis实现分布式锁-原理-问题详解
TensorFlow installation steps
行走社会100绝招
生命的颜色占卜
网络安全研究发现,P2E项目遭遇黑客攻击只是时间问题
Constellation ideal lover
JS语法使用
谷歌零碎笔记之MVCC(草稿)
SVG big fish eat small fish animation js special effects
向美国人学习“如何快乐”
Fiddler工具讲解
星座理想情人
MySQL 数据库 报错 The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
执子之手,与子偕老。你同意么?
SVG星球大战样式Toggle切换开关按钮
Jmeter永久设置中文界面
撕裂寂寞
YOLOv3 SPP理论详解(包括CIoU及Focal loss)
彩绘漂亮MM集









