'Unable to start [email protected] service in MacOS Monterey

Suddenly, every time I try to start the MySQL service it appears as stopped:

➜  ~ brew services
Name      Status  User           File
[email protected] stopped root           ~/Library/LaunchAgents/[email protected]

If I try to restart the service: brew services restart [email protected]

Stopping `[email protected]`... (might take a while)
==> Successfully stopped `[email protected]` (label: [email protected])
==> Successfully started `[email protected]` (label: [email protected])

Despite being successful the service remains stopped.

What I have tried so far:

Removed the MySQL folder: rm -rf /usr/local/var/mysql

And then tried to uninstall and install again brew uninstall [email protected] brew install [email protected]

But the same behavior remains.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source