Mac mysql 5.7启动报错,解决之道 The server quit without updating PID file
导读
晚上捣鼓数据库的时候,将mysql服务停止下,然后就死活启动不起来,这下可把我急坏了,自己数据库上有好多自己的个人项目,错误信息如下
ERROR! The server quit without updating PID file (/usr/local/mysql/data/chenyanbindeMacBook-Pro.local.pid)
2020-12-14T15:53:06.6NZ mysqld_safe Logging to '/usr/local/mysql/data/chenyanbindeMacBook-Pro.local.err'.
2020-12-14T15:53:06.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
2020-12-14T15:53:06.507326Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2020-12-14T15:53:06.507468Z 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.7.28) starting as process 5613 ...
2020-12-14T15:53:06.511336Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-12-14T15:53:06.511358Z 0 [Note] InnoDB: Uses event mutexes
2020-12-14T15:53:06.511367Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-12-14T15:53:06.511374Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-12-14T15:53:06.511620Z 0 [Note] InnoDB: Number of pools: 1
2020-12-14T15:53:06.511725Z 0 [Note] InnoDB: Using CPU crc32 instructions
2020-12-14T15:53:06.512845Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-12-14T15:53:06.521779Z 0 [Note] InnoDB: Completed initialization of buffer pool
2020-12-14T15:53:06.534536Z 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2020-12-14T15:53:06.534618Z 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2020-12-14T15:53:06.534652Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-12-14T15:53:06.843208Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-12-14T15:53:06.843285Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-12-14T15:53:06.843315Z 0 [ERROR] Failed to initialize builtin plugins.
2020-12-14T15:53:06.843333Z 0 [ERROR] Aborting 2020-12-14T15:53:06.843359Z 0 [Note] Binlog end
2020-12-14T15:53:06.843512Z 0 [Note] Shutting down plugin 'CSV'
2020-12-14T15:53:06.843810Z 0 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

网上百度一大堆,比如
- /usr/local/mysql/data目录下必须为空
- my.cnf中,必须指定存放mysql数据库的目录,在[mysqld]下设置:datadir=/usr/local/mysql/data
- 设置mysql data的权限
这些都没用,实在没辙了,那就来个简单粗暴的方式吧
解决之道
将:/etc/my.cnf,直接删除掉,然后重启mysql服务即可,我就通过这个方式,将mysql服务重新启动啦~
Mac mysql 5.7启动报错,解决之道 The server quit without updating PID file的更多相关文章
- mysql启动报错ERROR! The server quit without updating PID file处理
从其它服务器拷贝编译安装后的MySQL5.7目录后启动时报错如下: ERROR! The server quit without updating PID file(/path/to/XXX.pid) ...
- mac mysql start ERROR! The server quit without updating PID file
在mac下安装完mysql,启动时出现error: ERROR! The server quit without updating PID file (/usr/local/var/mysql/nal ...
- mysql启动报错:Starting MySQL...The server quit without updating PID file
在mysql的data目录下误删除了mysql-bin.000001,mysql-bin.000002等文件,但是没有删除mysql-bin.index文件,此时启动mysql就会报错: Starti ...
- mysql启动报错 The server quit without updating PID file
[root@uz6542 data]# /etc/init.d/mysqld startStarting MySQL... ERROR! The server quit without updatin ...
- mysql修改后启动my.cnf报错Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).
mysql中文乱码解决 mysql修改my.cnf后启动报错Starting MySQL... ERROR! The server quit without updating PID file (/v ...
- mysql启动报错,The server quit without updating PID file
环境 MacOS 10.12.2 mysql Ver 14.14 Distrib 5.7.16, for osx10.11 (x86_64) using EditLine wrapper (该部分可跳 ...
- lnmp下启动mysql报错 The server quit without updating PID file
启动时候错误代码:Starting MySQL[FAIL.] The server quit without updating PID file (/var/run/mysqld/mysqld.pid ...
- 启动mysql报错 -- ERROR! The server quit without updating PID file
开发说某个测试环境的mysql,无法重启了,报以下错误提示: # service mysqld restart Shutting down MySQL.. SUCCESS! Starting MySQ ...
- mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql.pid)
mysql启动报错Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql.p ...
- MySQL5.6启动报错The server quit without updating PID file
Mysql启动报错如下: [root@db01 opt]# service mysqld start Starting MySQL.... ERROR! The server quit without ...
随机推荐
- Calcite sql2rel 过程
sql2rel的过程是将SqlNode 转化成RelNode的过程 在 SqlToRelConverterTest中添加样例测试 @Test void testScan() { String sql ...
- 使用 JS 实现在浏览器控制台打印图片 console.image()
在前端开发过程中,调试的时候,我门会使用 console.log 等方式查看数据.但对于图片来说,仅靠展示的数据与结构,是无法想象出图片最终呈现的样子的. 虽然我们可以把图片数据通过 img 标签展示 ...
- EDP .Net开发框架--业务模型
平台下载地址:https://gitee.com/alwaysinsist/edp 业务模型概述 业务模型管理中所涉及的业务模型,业务模型的属性,业务模型的视图都是可以通过权限设置来实现数据的行(视图 ...
- 推荐一款模拟浏览器自动化操作神器!Mechanize
大家好,我是狂师! 今天给大家推荐一款用于模拟浏览器行为以进行网页自动化操作Python库:Mechanize. 1.介绍 Mechanize是Python中的一个库,它被设计用来自动化网页浏览和数据 ...
- 显示锁之ReentrantLock
ReentrantLock显示锁 在Java 1.5之前,协调对共享对象的访问可以使用的机制只有synchronized和volatile两种.Java1.5增加了一种新的机制:ReentrantLo ...
- 带你深入领略 Proxy 的世界
Proxy 是 es2015 标准规范加入的语法,很可能你只是听说过,但并没有用过,毕竟考虑到兼容的问题,不能轻易地使用 Proxy 特性. 但现在随着各个浏览器的更新迭代,Proxy 的支持度也越来 ...
- Anaconda 虚拟环境
1. 查看虚拟环境 conda env list 2. 创建虚拟环境 conda create -n env_name python=3.8 --- env_name: 虚拟环境名 --- pytho ...
- harbor 构建企业级镜像仓库
安装harbor 构建企业级镜像仓库 Harbor是由VMware公司开源的镜像仓库,harbor是在docker Registry上进行了企业级扩展,从而获得了更广泛的应用,这些新的企业级特性包括: ...
- tar解压报错——Not found in archive tar: Exiting with failure status due to previous errors
tar解压报错--Not found in archive [root@master software]# tar -xzf scala-2.11.8.tgz /usr/local/ tar: /us ...
- linux的账号和组
1.0 账号与用户组 1.1 用户标识符:UID,GID 虽然我们登陆Linux主机的时候输入的是账号,但其实Linux主机并不会直接认识你的账号名称,账号只是为了方便人. 一个文件如何判断他的拥有者 ...