Starting MySQL. ERROR! The server quit without updating PID file......

mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file mysql启动时报错信息如下:Starting MySQL… ERROR! The server quit without updating PID file ? 出现问题的可能性 1、可能是/usr/local/mysql/data/数据目录mysql用户没有权限(修改数据目录的权限) 解决方法 : 给予权限,执行 "chown -R mysql.mysql /usr/local/... 阅读详情

文章转载地址,点击跳转

MySQL: Starting MySQL….. ERROR! The server quit without updating PID file

This step-by-step guide is mainly for FreeBSD, however the idea is the same for Linux. Every once a while, when I update my FreeBSD box, the system likes to shutdown my MySQL server. Therefore, I need to start it again after the update is done. Unfortunately, the upgrade process is not smooth every time. Sometimes it will throw me some error.

/usr/local/etc/rc.d/mysql.server start

Oh well, I got the following error messages:

Starting MySQL..... ERROR! The server quit without updating PID file.

Sometimes, the message will tell you the exact location of which PID file:

Starting MySQL..... ERROR! The server quit without updating PID file (/var/db/mysql/www.icesquare.com.pid).

There are several solutions to troubleshoot these problems. I will go over each one by one.

Solution 1: Reboot The Computer

Although it sounds simple, but it really works. During the system upgrade, the OS may disable some of your daemons. Instead of troubleshooting each one by one, the easiest way is to start everything over. For example, I experienced this problem today after upgrading the Apache and Ruby (Yes, MySQL is not part of the update), and I got this error message afterward. After rebooting the computer, the error message is gone.

Solution 2: Remove Your MySQL Config File

If you have modified your MySQL configuration file, MySQL may not like it few versions after (MySQL is not backward compatibility friendly). It can be the problem of using an unsupported variable, or something similar. The easiest way is to remove your configuration file, and try to start the MySQL server again:

Backup your MySQL configuration first.  我是在这一步操作完成后,成功的(有可能自己指定的安装路径的原因)

mv /etc/my.cnf /etc/my.cnf.backup

And restart the MySQL server again:

/usr/local/share/mysql/mysql.server start

Hopefully you will see the following message:

Starting MySQL. SUCCESS!

Solution 3: Upgrade Your Database File

Sometimes, the newer MySQL doesn’t like the database created in earlier version. I discovered this when I upgrade to MySQL 5.5.7:

Starting MySQL..... ERROR! The server quit without updating PID file (/var/db/mysql/www.icesquare.com.pid).

Since MySQL tells me which PID file causes the problem, I open the file and take a look what’s going on:

sudo tail /var/db/mysql/www.icesquare.com.err

And I saw something interesting: tables: Table ‘mysql.proxies_priv’ doesn’t exist:

101112 10:49:16  InnoDB: Initializing buffer pool, size = 128.0M
101112 10:49:16  InnoDB: Completed initialization of buffer pool
101112 10:49:16  InnoDB: highest supported file format is Barracuda.
101112 10:49:17  InnoDB: 1.1.3 started; log sequence number 1589404
101112 10:49:17 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.proxies_priv' doesn't exist
101112 10:49:17 mysqld_safe mysqld from pid file /var/db/mysql/www.icesquare.com.pid ended

The reason is very simple. MySQL could not open a table created in the earlier version (< 5.7.7) because it is not compatible with the current version. So, we can try to start the MySQL in safe mode through rc.d. First, you can edit the /etc/rc.conf and put the following into the file:

mysql_enable="YES"
mysql_args="--skip-grant-tables --skip-networking"

Restart MySQL through rc.d:

/usr/local/etc/rc.d/mysql-server start

If you did it right, you should see something like the following:

Starting MySQL.. SUCCESS!

Now, MySQL is already running the safe-mode. We want to perform a MySQL upgrade on all tables:

sudo mysql_upgrade

You should see something like this:

Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/tmp/mysql.sock'
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/tmp/mysql.sock'
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.servers                                      OK
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
Running 'mysql_fix_privilege_tables'...
OK

Now, we want to switch the MySQL back to normal mode by commenting the extra options in /etc/rc.conf:

mysql_enable="YES"
#mysql_args="--skip-grant-tables --skip-networking"

And restart MySQL through /etc/rc.d:

/usr/local/etc/rc.d/mysql-server restart

Now the MySQL is up and running again!

Happy MySQLing.

–Derrick


Starting MySQL. ERROR! The server quit without updating PID file 解决方法 我刚开始学mysql高级的时候,让下载两个mysql rpm包,一个server端,一个client端,然后我利用xftp工具放到了centos7上,但是刚开始就是怎么也安装不上,还报了以下错误: warning: MySQL-server-5.5.48-1.linux2.6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: N 原因:这是由于yum安装了旧版本的GPG keys造成的 解决办法: 命令后面跟上 - -force .. 阅读详情

相关推荐

mysql崩溃恢复Starting MySQL... ERROR! The server quit without updating PID file

启动mysql失败: Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql-master/data/mysql.pid)  错误日志如下:   检查配置信息等情况是否正常,包含数据目录权限,是否已有进程,mysql-binlog.index,selinux等基本情况 数据库崩溃,本...

qq_22115089的博客 1128

mysql启动报错The server quit without updating PID file几种解决办法

7.删除mysql库文件/data/mysql/中的“ib_*”文件,注意:** 执行该操作之前一定要对数据库进行备份,因为ibdata1存放的是所有数据文件,如果不小心删了库,那就惨了!解决方法 :给予权限,执行 “chown -R mysql:mysql /var/data” “chmod -R 755 /usr/local/mysql/data” 然后重新启动mysqld!解决方法:去mysql的数据目录/data看看,如果存在mysql-bin.index,就赶快把它删除掉吧,它就是罪魁祸首了。..

m0_52789121的博客 1万+

Starting MySQL... ERROR! The server quit without updating PID file (/usr/local/mysql/mysql-bin/data/

最近在服务器上面搭建了宿主机–版本的mysql:5.7报错如下:Starting MySQL… ERROR!

知识改变命运,ヾ(◍°∇°◍)ノ゙【求关注】 5323

mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file快速解决

在配置文件/etc/my.cnf添加错误日志参数,一切问题都解决启动报错时查看日志信息:发现日志输出肯定是配置文件里加入了这个错误参数,去掉即可新加报错:这是在mysql新版本:5.6.35,5.6.36的一个bug参考:https://bugs.mysql.com/bug.php?id=84427解决:手动创建日志文件:转自http://732233048.blog.51cto.com/9323668/1636409,版权归作者所有。

qq_35757427的博客 2万+

ArduSub程序学习(1)——ardupilot框架整理

AP_HAL层(硬件抽象层)是我们制作 ArduPilot 的方式可移植到许多不同的平台。有一个顶级AP_HAL libraries/AP_HAL,用于定义代码其余部分的接口 有针对具体的板子特性,然后就有了AP_HAL_XXX 子目录,例如,AP_HAL_AVR 用于基于 AVR 的 开发板,AP_HAL_PX4用于 Pixhawk 开发板和 AP_HAL_Linux 基于 Linux 开发板。工具目录tools directories工具目录是杂项支持目录。

weixin_49839886的博客 2816

AI数字人直播带货全攻略:从零搭建到高效运营

本文提供了一份从零开始搭建与运营AI数字人直播间的完整指南。详细解析了AI数字人直播带货的核心价值与适用场景,并分步讲解了硬件准备、软件选择、数字人创建、话术编排、OBS推流设置及开播测试等关键环节。最后,文章还分享了高效运营策略与常见避坑指南,旨在帮助商家利用AI技术实现降本增效,打造24小时不间断的智能带货直播间。

weixin_29269441的博客 2241

Mysql 启动报错解析:Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/dat

问题 [root@centos74 ~]# service mysqld start Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/mysqld.pid). 分析解决 1、 可能已经存在mysqld 进程. [root@centos74 ~]#...

清风扬 11万+

ESP32C3的I2S接口详解:以驱动PCM5102A为例,避开时序与配置的那些坑

本文深入解析ESP32C3的I2S接口驱动PCM5102A DAC的完整解决方案,涵盖时序对齐、PCB优化和寄存器级配置。通过实际案例分享时钟树分析、信号完整性设计和底层调试技巧,帮助开发者避开常见陷阱,实现高质量音频输出。重点探讨了I2S协议栈、电源滤波优化及DMA传输异常处理等关键技术要点。

weixin_30254435的博客 301

MySQL: Starting MySQL….. ERROR! The server quit without updating PID file

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_33729196的博客 1万+

浅谈天线 - - - GNSS/BT/4G/2.4G

全球定位导航系统,最成熟的就是美利坚,我大中华,俄罗斯,还有就是欧洲的一个(太次不谈)所以我们在项目调试的时候,小尺寸的陶瓷天线上一般兼容2个频段,体积大一点的可以兼容三个频段,采用组合的形式 GPS+BD GPS+GLONASS GLONASS+BD 或者是单频段的定位天线陶瓷PATC陶瓷片:陶瓷片面积越大,介电常数越大,其共振频率越高,接收效果越高,这就是为什么都推荐使用大一点的陶瓷天线的原因银层:陶瓷天线表面的银层可以影响天线的共振频率,理想的GNSS陶瓷片频点准确落在1575.42MH

BLACKHOLE6的博客 1万+

UDP协议详解——使用Socket通信

UDP(UserDatagramProtocol)是一个简单的面向消息的传输层协议,尽管UDP提供标头和有效负载的完整性验证(通过校验和),但它不保证向上层协议提供消息传递,并且UDP层在发送后不会保留UDP 消息的状态。因此,UDP有时被称为不可靠的数据报协议。如果需要传输可靠性,则必须在用户应用程序中实现。UDP使用具有最小协议机制的简单无连接通信模型。UDP提供数据完整性的校验和,以及用于在数据报的源和目标寻址不同函数的端口号。它没有握手对话,因此将用户的程序暴露在底层网络的任何不可靠的方面。

qq_3517289697的博客 3387

Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19

 输入:service mysqld start 报错: Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19.ksc.com.pid).解决: ./scripts/mysql_install_db --user=mysql --basedir=/us...

投资自己 7532

实战经验:Sensor Bringup中那些坑我都帮你踩过了(避坑指南)

本文是一份详尽的Sensor Bringup实战避坑指南,总结了从I2C通信、MCLK时钟、电源管理到图像异常等关键环节的常见问题与排查方法。文章提供了系统化的调试工作流,强调先硬件后软件的排查原则,旨在帮助硬件工程师快速定位并解决Sensor启动过程中的难题,提升开发效率。

weixin_29212429的博客 576

Starting MySQL... ERROR! The server quit without updating PID file

Starting MySQL… ERROR! The server quit without updating PID file (/usr/local/mysql/data/centos7-1810.pid). 源码安装mysql5.6链接[https://blog.csdn.net/qq_44839276/article/details/119415964]() 配置文件默认读取顺序: 1.Starting MySQL… ERROR! The server quit without updating

河静 8026

多标签分类怎么做?(Python)

首先简单介绍下,多标签分类与多分类、多任务学习的关系: 多分类学习(Multi-class):分类器去划分的类别是多个的,但对于每一个样本只能有一个类别,类别间是互斥的。例如:分类器判断这只动物是猫、狗、猪,每个样本只能有一种类别,就是一个三分类任务。常用的做法是OVR、softmax多分类

y1282037271的博客 1360

思科 MIB 库

思科 MIB

m0_54931486的博客 770

Starting MySQL... ERROR! The server quit without updating PID file 问题解决

Starting MySQL... ERROR! The server quit without updating PID file 问题解决

asdfgh0077的博客 210

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

Starting MySQL.. ERROR! The server quit without updating PID file

Starting MySQL.. ERROR! The server quit without updating PID file 网上大部分说的都是权限问题,其实如果初始化的datadir和配置的datadir不一致,也会报错的,因为要求datadir放到其他目录,但是初始化的时候粗心了,直接拷贝了文档的初始化命令 /usr/local/mysql/scripts/mysql_install

bwlab的博客 7865

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

Starting MySQL. ERROR! The server quit without updating PID file

前台开启: [root@t1 x]# service mysqld start Starting MySQL. ERROR! The server quit without updating PID file (/mydata/data/t1.pid). 后台告警日志显示: err文件表示: 160316 02:33:39 mysqld_safe Starting

白及 786

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

MySQL 启动日志报错:Starting MySQL. ERROR! The server quit without updating PID file

1.首先通过切换到mysql数据库所属用户: hd-mysql2.启动mysql,报错。

健康平安的活着的专栏 4124

MySQL: Starting MySQL….. ERROR! The server quit without updating PID file解决办法

1 问题 [root@localhost mysql]# /etc/rc.d/init.d/mysql statusMySQL is not running, but lock file (/var/lock/subsys/mysql[FAILED][root@localhost mysql]# /etc/rc.d/init.d/mysql startStarting MySQL...The...

rjkfloveyou的专栏 3201

mysql启动报错heap_mysql启动报错:Starting MySQL... ERROR! The server quit without updating PID file...

mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql.pid)的解决方法:1、可能是/opt/mysql/data/数据目录mysql用户没有权限(修改数据目录的权限)解决方法 :给予权限,执行 "chown -R mysql.mysql /opt...

weixin_39617669的博客 209

starting mysql error_Starting MySQL.. ERROR! The server quit without updating PID file

linux安装mysql,对着文档修改了些配置,servicemysqldstart:StartingMySQL..ERROR!TheserverquitwithoutupdatingPIDfile(/home/yytx/data/mysql/data/localhost.localdomain.pid).看...linux安装mysql,对着文档修改了些配置,service mysqld sta...

weixin_29115367的博客 2139

启动MySQL出现Starting MySQL. ERROR! The server quit without updating PID file

今天在云服务器上启动MySQL时,出现了如下报错: 如下图: Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/iZ2zedm5xm1ux98qqzpbt1Z.pid). 百度上搜了一轮后,大多都是由于硬盘空间不足或权限不够导致。但仔细检查后,发现磁盘完全够用,权限也全开。继续跳进目录往下排查,发现一个err文件。 日志中的第一个ERROR报错"不能分配内存" ...

食鱼酱的博客 1万+
上一篇: 在raw_input()中使用中文提示,在CMD下中文乱码
下一篇: PHP 暂停函数 sleep() 与 usleep() 的区别
y_server
博客等级 码龄11年 6粉丝 11原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值