簡體   English   中英

無法啟動 mysql (Homebrew Mac M1)

[英]Can't start mysql (Homebrew Mac M1)

當我嘗試運行 MYSQL 服務器時出現錯誤

當我嘗試使用 brew services start mysql 運行時,返回此錯誤

 brew services start mysgl Bootstrao failed: 5: Inout/outout error Try re-running the command as root for richer errors Error: Failure while executina; `/bin/launchetl bootstrap qui/501 /Users/<user> /Library/LaunchAgents/homebrew.mxcl.mysql.plist`exited with 5

如果我用 sudo 運行它就行不通

 % sudo brew services start mysgl Warning: Taking root:admin ownership of some mysql paths: /opt/homebrew/Cellar/mysql/8.0.30_1/bin /opt/homebrew/Cellar/mysq1/8.0.30_1/bin/mysqld_safe /opt/homebrew/opt/mysql /opt/homebrew/opt/mysql/bin /opt/homebrew/var/homebrew/linked/mvsal This will require manual removal of these paths using sudo rm' on brew upgrade/reinstall/uninstall. Warning: mysql must be run as non-root to start at user login. /Library/LaunchDaemons/homebrew.mxcl.mysql:plist:servic ealready bootstrapped Bootstrap failed: 37: Operation already in progress Error: Failure while executing. `/bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.mysql.plist`exited with 37 <user>~ % brew services list Name status User File mysql stopped root ~/Librarv/LaunchAgents/homebrew.mxcl.mvsal.olist

我試圖再次卸載並安裝 HomeBrew 和 MYSQL 但總是有相同的錯誤。

謝謝您的幫助。

不是一個真正的答案:

如果您不是絕對需要將其作為本機進程運行,請在 docker 中運行它。

除此之外:mysql 想要以 root 身份運行,如錯誤消息所述。 也許您需要更正模式位。 仔細檢查 brew post 安裝步驟,通常有一個 hing 或命令要執行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM