macos10.13 mysql_mysql-8.0.12-macos10.13-x86_64 启动失败,如何解决?

问题描述

我去年就在mac上安装过mysql,使用没问题,后来可能是由于系统更新,运行报错,所以我根据网上教程删除了先前的文件,重新在官网下载了最新版mysql-8.0.12-macos10.13-x86_64

问题出现的平台版本及自己尝试过哪些方法

试图在系统偏好里面启动:

d2f66f2c047599a235873b5df5a26146.png

7f9e695f1977cac8e98bec55896fecfd.png

但是点击 Start MySQL Server时,没有反应,依旧是红色的圆点,并没有变绿。

试图在terminal启动:

45b091f6535c6924f8d268edb3431690.png

但是报错,于是查看错误日志:

1b4dc8fcf0eacff7f5b1a083f92f943f.png

得到的是这样的结果。

附上一张文件的目录图:

3abd0598c85d6b19919a9a204d3dd151.png

相关代码

错误日志代码:

1 2018-08-14T07:50:43.420590Z 0 [System] [MY-010116] [Server] /usr/local/mysql/bin/mysqld (mysqld 8.0.12) starting as process 1107

2 2018-08-14T07:50:43.424350Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /usr/l ocal/mysql/data/ is case insensitive

3 2018-08-14T07:50:43.430795Z 0 [ERROR] [MY-011370] [Server] Plugin keyring_file reported: 'File '/usr/local/mysql/keyring/key ring' not found (OS errno 13 - Permission denied)'

4 2018-08-14T07:50:43.430844Z 0 [ERROR] [MY-011355] [Server] Plugin keyring_file reported: 'keyring_file initialization failur e. Please check if the keyring_file_data points to readable keyring file or keyring file can be created in the specified loc ation. The keyring_file will stay unusable until correct path to the keyring file gets provided'

5 2018-08-14T07:50:43.433896Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.

6 2018-08-14T07:50:43.434078Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.

7 2018-08-14T07:50:43.434100Z 0 [ERROR] [MY-010119] [Server] Aborting

8 2018-08-14T07:50:43.435367Z 0 [System] [MY-010910] [Server] /usr/local/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.12) MySQL Community Server - GPL.

你期待的结果是什么?实际看到的错误信息又是什么?

错误结果:

. ERROR! The server quit without updating PID file (/usr/local/mysql/data/zhuliwendeMacBook-Pro.local.pid).

期待结果:

查看了stackoverflow 和 segmentfault 都没有解决我的问题(可能因为我自身水平低),希望有人能针对我的情况,给出具体的对策

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值