不小心誤刪phpmyadmin的root

Jess
再不寫就要忘了
Sep 29, 2020

手賤不小心在phpmyadmin介面把root權限刪掉,然後mamp pro重灌還是一樣的問題,是因為mamp pro沒有刪乾淨,文件還存在電腦裡,執行以下步驟重灌mamp pro

  1. Delete the appsolute directory from /Library/Application Support , which contains configuration files that are created upon MAMP Pro installation
  2. Delete the file hosts.mamp.bak in /etc, which is the MAMP hosts backup file
  3. Delete the MAMP directory from /Applications/MAMP
  4. Open the MAMP Pro Uninstaller, check all five options, and click to uninstall
  5. 重新安裝mamp pro

安裝完成後可以進入phpmyadmin了,但是apache打不開,說:8888 port已被佔用,這時候嘗試進入活動監視器並蒐索MysqldHttpd並結束它們的所有進程。然後重新啟動Mamp

參考文章:https://stackoverflow.com/questions/11855247/mamp-pro-restore-root-user-uninstall

參考文章:https://stackoverflow.com/questions/26124504/mamp-pro-apache-couldnt-be-started-because-the-port-was-already-in-use/26640841

--

--

Jess
再不寫就要忘了

之後的文章都會搬到https://penueling.com發表囉!