当前位置:网站首页>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!
边栏推荐
- 软件系统测试和验收测试有什么联系与区别?专业软件测试方案推荐
- SVG星球大战样式Toggle切换开关按钮
- EA谈单机游戏:仍是产品组合中极其重要的部分
- Redis cache and existing problems--cache penetration, cache avalanche, cache breakdown and solutions
- 强网杯2022 pwn 赛题解析——house_of_cat
- ps怎么把图片变清晰,自学ps软件photoshop2022,简单快速用ps让照片更清晰更有质感
- How Entrepreneurs Attract Venture Capitalists
- 谷歌零碎笔记之MVCC(草稿)
- unity urp 渲染管线顶点偏移的实现
- Redis缓存以及存在的问题--缓存穿透、缓存雪崩、缓存击穿及解决方法
猜你喜欢

php fails to write data to mysql

力扣刷题八月第一天

线性代数对角化

Algorithm Supplements Fifteen Complementary Linked List Related Interview Questions

MySQL 数据库 报错 The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
![[Structure internal power practice] Structure memory alignment (1)](/img/31/4ddc16810da8238ac95a93d007e12e.png)
[Structure internal power practice] Structure memory alignment (1)

Discourse 清理存储空间的方法

TensorFlow installation steps

最 Cool 的 Kubernetes 网络方案 Cilium 入门教程

ps怎么把图片变清晰,自学ps软件photoshop2022,简单快速用ps让照片更清晰更有质感
随机推荐
Qt writes custom controls: one of the text spotlight effects
Access Denied: "microsoft.web.ui.webcontrols" workaround
C-Eighty seven(背包+bitset)
彩绘漂亮MM集
别把你的天使弄丢了
爬虫之验证码
[Untitled] Long-term recruitment of hardware engineers-Shenzhen Baoan
Controlling number and letter input in ASP
YOLOv3 SPP理论详解(包括CIoU及Focal loss)
双向循环带头链表
网络安全研究发现,P2E项目遭遇黑客攻击只是时间问题
Antdesign a-select 下拉框超出长度换行显示
微信 小程序 之PC端 不支持 wx.previewMedia 方法 故用自定义轮播图进行 模拟照片视频的播放
Insights in programming
Data source object management Druid and c3p0
SQL SERVER on master-slave table trigger design
Vulnhub target drone: HA_ NARAK
Jmeter永久设置中文界面
七夕?编程?
二叉树进阶复习1