当前位置:网站首页>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=true
One 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!
边栏推荐
猜你喜欢
二叉树进阶复习1
Fiddler tool explanation
Fiddler工具讲解
MVCC of Google's Fragmented Notes (Draft)
TensorFlow安装步骤
爬虫从入门到入牢
JVM运行流程,运行时数据区,类加载,垃圾回收,JMM解析
EA谈单机游戏:仍是产品组合中极其重要的部分
Game Thinking 19: Multi-dimensional calculation related to games: point product, cross product, point-line-surface distance calculation
七夕看什么电影好?爬取电影评分并存入csv文件
随机推荐
高效使用数码相机的诀窍
常用的遍历map的方法
爱情是一部忧伤的乐曲
线性代数对角化
支持触屏slider轮播插件
512色色谱图
学习机赛道加速:请“卷”产品,不要“卷”营销
Support touch screen slider carousel plugin
Use of thread pool (combined with Future/Callable)
每一个女孩曾经都是一个没有泪的天使
JVM运行流程,运行时数据区,类加载,垃圾回收,JMM解析
二叉树进阶复习1
DataFrame insert row and column at specified position
JS语法使用
Random code generation
Chapter 12 贝叶斯网络
利用Jenkins的持续集成
D2--FPGA SPI interface communication2022-08-03
uniapp时间组件封装年-月-日-时-分-秒
吴恩达深度学习deeplearning.ai——第一门课:神经网络与深度学习——第二节:神经网络基础(下)