I am trying to uninstall my old sql so that I can install a new one. I am following this post but stuck at launchctl unload
.
[~/Library/LaunchAgents]$ ls
com.adobe.ARM.202f4087f2bbde52e3ac2df389f53a4f123223c9cc56a8fd83a6f7ae.plist
com.mysql.mysqld.plist
com.facebook.videochat.ava.plist
homebrew.mxcl.postgresql.plist
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
launchctl: Couldn't stat("/Users/ava/Library/LaunchAgents/homebrew.mxcl.postgresql.plist"): No such file or directory
nothing found to unload
Why is not able to find the file when it is there?
First, uninstall all the MySQL packages installed on your server. Use one of the followings commands as per your Linux distribution. Step 2 – Romove MySQL Directory. Now we need to remove MySQL data directory from system which by default exists at /var/lib/mysql.
Next you can delete the data directory. Run Command Prompt as Administrator and execute the following command to stop and remove MySQL service. Click on Start, type in Show hidden files and folders.
sudo apt-get remove --purge mysql-server mysql-client mysql-common sudo apt-get autoremove sudo rm -rf /var/lib/mysql I had to run the last command because Ubuntu sometimes keeps some libs even you try to purge them all. When I tried sudo apt-get purge mysql* it didn't work.
Now we need to remove MySQL data directory from system which by default exists at /var/lib/mysql. If you didn’t find this, It may be changed to some other place, which you can find in my.cnf file with variable datadir. Delete the /var/lib/mysql directory from the system but we prefer to rename it to keep a backup of existing files.
check for homebrew.mxcl.mysql
launchctl list
Remove
launchctl remove homebrew.mxcl.mysql
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With