Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing mysql using launchctl

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?

like image 226
Ava Avatar asked Aug 22 '13 14:08

Ava


People also ask

How to uninstall MySQL on Linux?

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.

How to stop and remove MySQL service in Windows?

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.

How do I purge MySQL from Ubuntu?

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.

How to remove MySQL data directory from system?

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.


1 Answers

check for homebrew.mxcl.mysql

launchctl list   

Remove

launchctl remove homebrew.mxcl.mysql
like image 53
Parag Bafna Avatar answered Sep 20 '22 01:09

Parag Bafna