iT邦幫忙

0

port 3306 問題

YC 2022-01-07 17:32:261194 瀏覽
  • 分享至 

  • xImage

啟動xampp上的MySQL時會跑出錯誤訊息Error: MySQL shutdown unexpectedly根據網路上的做法taskkill /f /pid 13352 強制停止3306 順利解決,但是之後發現MySQL Workbench無法連接伺服器,錯誤訊息如下
https://ithelp.ithome.com.tw/upload/images/20220107/2014538058EI47q1eb.jpg

本人對cmd指令不熟,在google上查詢資料,得知taskkill指令不可逆(不知道有沒有理解錯),請問應該如何操作才能解決此錯誤訊息?非常感謝!!

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

1 個回答

1
Gary
iT邦好手 1 級 ‧ 2022-01-07 17:39:14
看更多先前的回應...收起先前的回應...
YC iT邦新手 5 級 ‧ 2022-01-07 21:06:18 檢舉

感謝Gary解答,我現在電腦不在身邊,之後我會試試看這個方法,真的很感謝Gary這麼快回答我的問題,謝謝!!

Gary iT邦好手 1 級 ‧ 2022-01-07 22:55:48 檢舉

剛好路過!!希望可以幫到

YC iT邦新手 5 級 ‧ 2022-01-10 09:18:58 檢舉

我剛剛試了這個方法,發現Use SSL那裡並沒有No這個選項,只有Require
Require and Verify CA
Require and Verify Identity

https://ithelp.ithome.com.tw/upload/images/20220110/20145380ve0i6R1fT7.png

嘗試在Advanced設定useSSL = 0 ,結果出現無法連接localhost錯誤訊息
https://ithelp.ithome.com.tw/upload/images/20220110/20145380iYK1CFi7p3.jpg

YC iT邦新手 5 級 ‧ 2022-01-10 10:38:41 檢舉

重新開機莫名就能連線了@@ 感謝Gary幫忙,謝謝!!!

Gary iT邦好手 1 級 ‧ 2022-01-10 10:48:38 檢舉

恭喜你!
Instead of downgrading you can also edit the file that stores the connection details with a different editor. This works for at least 8.0.27.
Open /home/.mysql/workbench/connections.xml.
Set the value to 0 for the following for each connection you want to use without SSL:
<value type="int" key="useSSL">0</value>
Note that you'd have to repeat the steps if you edit the connection with the workbench again afterwards.

YC iT邦新手 5 級 ‧ 2022-01-10 11:20:57 檢舉

謝謝!我下次使用的時候會再注意這部分,感謝!

Gary iT邦好手 1 級 ‧ 2022-01-10 23:12:34 檢舉

/images/emoticon/emoticon57.gif

YC iT邦新手 5 級 ‧ 2022-01-11 09:35:53 檢舉

/images/emoticon/emoticon57.gif

我要發表回答

立即登入回答