iT邦幫忙

0

mac版的xampp 裡的mysql 無法啟動

https://ithelp.ithome.com.tw/upload/images/20220120/201459207ojmmBlLUq.jpg

https://ithelp.ithome.com.tw/upload/images/20220120/2014592095LopCKgda.jpg
如圖 無法連線 請各位大大幫我解惑

執行了brew services info mysql之後
https://ithelp.ithome.com.tw/upload/images/20220120/201459206IYlttZviR.jpg

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
一級屠豬士
iT邦大師 1 級 ‧ 2022-01-20 14:08:32
最佳解答

使用以下方式檢查看看

 brew services info mysql
s35145566 iT邦新手 5 級 ‧ 2022-01-20 14:29:09 檢舉

檢查了

s35145566 iT邦新手 5 級 ‧ 2022-01-20 14:29:32 檢舉

https://ithelp.ithome.com.tw/upload/images/20220120/20145920NhhYlje8jP.jpg

brew services start mysql

用這樣方式啟動.

有兩種方式,兩種的差異,自己觀察底下說明.

[sudo] brew services run (formula|--all):
    Run the service formula without registering to launch at login (or boot).

[sudo] brew services start (formula|--all):
    Start the service formula immediately and register it to launch at login
(or boot).

停止可以用

brew services stop mysql

盡量少用 kill -9

我要發表回答

立即登入回答