Trying to unistall MySQL completely but can see 'grep mysql' process after reboot. Can not kill that process its changing PID. Any suggestions?
Asked
Active
Viewed 4,293 times
2
-
How it was installed? Using downloaded .pkg file or using brew!!! – Vin.AI Aug 20 '18 at 05:47
-
1. Install latest version MySQL with brew 2. Unistall it with brew 3. Download 5.7 MySQL as .dmg file and installed it – zzheads Aug 20 '18 at 05:49
-
Then answer given by @Damian Dziaduch will work! Check more info `brew info mysql` – Vin.AI Aug 20 '18 at 05:52
-
Well, but 'grep mysql' process is still there.. – zzheads Aug 20 '18 at 06:00
1 Answers
2
To stop the services you can use one of these:
brew services stop mysql
mysql.server stop
Then you can uninstall it with brew uninstall mysql
. But database files will remain, so to clear them just do rm -rf /usr/local/var/mysql
Cheers.

Damian Dziaduch
- 2,107
- 1
- 15
- 16
-
Already removed /usr/local/var/mysql, brew said theres no service "mysql" started, and can't run mysql.server, because it was deleted – zzheads Aug 20 '18 at 05:42
-
-
-
@zzheads that is creepy. What if you create a new user on mac? Will it have mysql process also? Maybe try to find what is starting the process. I am pretty sure that this has an answer on StackOverFlow already ;) – Damian Dziaduch Aug 21 '18 at 10:13
-
-