I deleted MacPorts and my MacBook Pro crashed.
I downloaded Gimp and in the process I also downloaded MacPorts. I don’t think MacPorts installed properly because when asked started to connect to MySQL workbench database, I could not. I was told port 3306 was no longer available. I do not know anything about Mac ports or how it works. So I wanted to uninstall it. I followed the directions which said go to system preferences, Mac ports and press that uninstall button. But my system preferences did not show a Mac ports icon. So I went to opt, bin, and I deleted the Mac ports folder into the trash bin. Now my system has crashed and I cannot get it to start back up. I think I can start it by doing a system recovery and using terminal to pull the folder out of the trash bin, but I do not know the terminal commands well enough to put the folder back where it belongs. Can someone tell me how to do that?
Also, if and when I get it restored and booted back up, how do I configure my system so I can connect to my database? I am running the latest version of High Serria and using MySQL Workbench, version 8.0. I am also using HughesNet for my provider so that means I have to run an .sh file updating my IP address every time I connect remotely.