mysql安装后,一直是稳定运行,但是突然今天就挂了,启动不了。

我对mac下mysql的目录又极其不熟,网上的教程有很多,关于mysql目录的位置也是五花八门,导致如此的原因可能是因为
每个人使用了不同的安装方式。

我出现的错误是
sudo /usr/local/var/mysql/mysql.server start(通过系统的mysql启动也不行)
Error!The server quit without updating PID file (/usr/local/var/mysql/MyMacBook-Pro.local.pid)

只说我的解决方式,照搬可能不适用

cd /usr/local/var/data

查找.err的文件,mac在这个目录下有很多err结尾的文件,一个个查。我的是这个:MyMacBook-Pro.local.err

这个文件中包含了错误输出:

2018-04-09 14:44:02 2860 [Note] Plugin 'FEDERATED' is disabled.
2018-04-09 14:44:02 2860 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-04-09 14:44:02 2860 [Note] InnoDB: The InnoDB memory heap is disabled
2018-04-09 14:44:02 2860 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-04-09 14:44:02 2860 [Note] InnoDB: Memory barrier is not used
2018-04-09 14:44:02 2860 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-04-09 14:44:02 2860 [Note] InnoDB: Using CPU crc32 instructions
2018-04-09 14:44:02 2860 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2018-04-09 14:44:02 2860 [Note] InnoDB: Completed initialization of buffer pool
2018-04-09 14:44:02 2860 [Note] InnoDB: Highest supported file format is Barracuda.
2018-04-09 14:44:02 2860 [Note] InnoDB: The log sequence numbers 2462362688 and 2462362688 in ibdata files do not match the log sequence number 2462758734 in the ib_logfiles!
2018-04-09 14:44:02 2860 [Note] InnoDB: Database was not shutdown normally!
2018-04-09 14:44:02 2860 [Note] InnoDB: Starting crash recovery.
2018-04-09 14:44:02 2860 [Note] InnoDB: Reading tablespace information from the .ibd files...
2018-04-09 14:44:02 7fff9506e3c0  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory
InnoDB: Error: could not open single-table tablespace file ./db_hello/email_domain.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here.

包含了一大坨,没办法,只能一句句的啃了,跟吃屎一样。

InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: Error: could not open single-table tablespace file ./db_hello/email_domain.ibd

这句话已经把启动失败的原因交代的很清楚了。

对,就是它,没权限,至于运行好好的,突然一个表的权限变了,很诚恳的说,我也不晓得

查看了下db_hello下email_domian.ibd的权限

-rwxr-xr-x@ 1 root    _mysql     98304  2  8 15:11 email_domain.ibd

变成了root,md,还特么带了一个@符号(表文件扩展的意思,可用ls -l@ email_domain.ibd查询扩展信息)

改用户到_mysql
chown _mysql:_mysql email_domain.ibd
保存,重新启动,成功

清净了

转载于:https://www.cnblogs.com/wulalami/p/8760172.html

ERROR! The server quit without updating PID file (/usr/local/var/mysql/what the fuck.local.pid)相关推荐

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

    Starting MySQL... ERROR! The server quit without updating PID file 问题解决 参考文章: (1)Starting MySQL... E ...

  2. 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/ ...

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

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

  4. 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 ...

  5. mysql服务启动失败 Starting MySQL. ERROR! The server quit without updating PID file

    [问题描述] 使用 service mysqld start 启动mysql服务失败,提示 Starting MySQL. ERROR! The server quit without updatin ...

  6. MYSQL启动后报:ERROR! The server quit without updating PID file错误的问题解决

    注意:本文出自 "阿飞"的博客 ,如果要转载本文章,请与作者联系! 并注明来源: http://blog.csdn.net/faye0412/article/details/703 ...

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

    MySQL.. ERROR! The server quit without updating PID file问题解决 参考文章: (1)MySQL.. ERROR! The server quit ...

  8. 出现ERROR The server quit without updating PID file

    万恶之源 ERROR! The server quit without updating PID file (/usr/local/var/mysql/XXXX.local.pid) 解决办法 本人使 ...

  9. 解决 Starting MySQL ERROR The server quit without updating PID file

    服务器断电重启后mysql启动报错,记录一下解决方案 环境 mysql版本 5.7.21 服务器 Red Hat Enterprise Linux Server release 7.6 (Maipo) ...

  10. mac os ERROR! The server quit without updating PID file

    环境 mac os 12.4 M1芯片 mysql5.7 遇到的问题 使用homebrew安装完mysql5.7后,启动mysql发生错误 > mysql.server start > S ...

最新文章

  1. SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.
  2. Linux对用户态的动态内存管理
  3. Spring七中传播行为详解
  4. 2009年4月计算机网络原理,全国2009年4月高等教育自学考试计算机网络原理
  5. 最好的Java开发人员测试和集成工具
  6. 转载:bug的处理流程
  7. Openlayers4加载天地图
  8. crashdumpandroid_Android Stability - crash 和 ramdump
  9. html设置页面宽度高度,a4纸宽度_A4纸网页打印 html网页页面的宽度设置成多少 _a4纸宽度高度...
  10. 文件加密共享防止转发-冷杉云盘
  11. 【Milvus的以图搜图】
  12. 语音生成视频论文:Audio-driven Talking Face Video Generation with Learning-based Personalized Head Pose
  13. 我讨厌你公事公办的样子
  14. mac电脑使用小技巧
  15. 2017国家集训队作业[agc016e]Poor Turkey
  16. AntDesign表格中下拉菜单
  17. 《邂逅美丽》之赏析2
  18. 2020牛客寒假算法基础集训营1 D hanayo和米饭
  19. H3C BGP MPLS实验
  20. Pytorch 构建简单Neural Networks

热门文章

  1. 内网渗透----常见后门
  2. 使用ASP加密算法加密你的数据
  3. 亚马逊 AWS推送 AWS nsn Was apps 证书配置 控制台创建 新建APP的几个坑 详解
  4. C++11中的智能指针unique_ptr、shared_ptr和weak_ptr详解
  5. linux环境下使用sort命令完成常见排序操作
  6. WLAN组网详细步骤
  7. python常量基本类型有哪些_Python变量,常量,基本数据类型,输入用户交互,基础,input...
  8. Vue——vue3+ts
  9. 计算机主机清洁方法,电脑主机除尘清洁板卡维护方法及注意事项 - 主板知识
  10. python创意编程培训 体会_省人工智能和创意编程教学研讨会学习心得