gpt4 book ai didi

MySQL 服务器未运行

转载 作者:行者123 更新时间:2023-11-29 10:11:59 25 4
gpt4 key购买 nike

MySQL 服务器未运行。我从https://dev.mysql.com安装了MySQL服务器,实例像图像一样搁浅。 enter image description here

当我从终端运行命令时

mysql.server start

启动MySQL... 错误!服务器退出而不更新 PID 文件(/usr/local/var/mysql/xxxoMacBook.pid)。发生错误。当我搜索这个错误解决方案时,所以我运行命令

sudo chown -R _mysql:_mysql /usr/local/var/mysql

sudo mysql.server start ,所以会发生同样的错误。所以我尝试了另一种错误解决方案,我运行命令 cd /usr/local/var/mysql/ & mysql.server start ,启动MySQL.

/usr/local/Cellar/mysql/5.7.22/bin/mysqld_safe: line 144: /usr/local/var/mysql/xxxxoMacBook.err: Permission denied
/usr/local/Cellar/mysql/5.7.22/bin/mysqld_safe: line 144: /usr/local/var/mysql/xxxxoMacBook.err: Permission denied
/usr/local/Cellar/mysql/5.7.22/bin/mysqld_safe: line 198: /usr/local/var/mysql/xxxxoMacBook.err: Permission denied
/usr/local/Cellar/mysql/5.7.22/bin/mysqld_safe: line 144: /usr/local/var/mysql/xxxxoMacBook.err: Permission denied
ERROR! The server quit without updating PID file (/usr/local/var/mysql/xxxxoMacBook.pid).

发生错误。当我运行命令 mysql.server status 时,错误! MySQL 未运行错误发生。当我运行 mysql.server stop; 时,错误!找不到MySQL服务器PID文件!发生错误。我认为 MySQL 已从镜像中移出,但事实并非如此。我该如何移动它?我想搜索数据库名称,该怎么办?

最佳答案

这显然是权限问题,请确保提供对以下路径的完全权限,正如您在错误中看到的那样。

usr/local/Cellar/mysql/5.7.22/bin/mysqld_safe:第 144 行:/usr/local/var/mysql/xxxoMacBook.err:权限被拒绝/usr/local/Cellar/mysql/5.7.22/bin/

关于MySQL 服务器未运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50809181/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com