Troubleshoot with running mysql via brew
Do you all know what happened here
I installed mysql via brew in macos m1, whenever i run
brew services start mysql
it shows me successfully but when i check it again with brew services
it's stopped
Im not sure what went wrong; I've tried everything I found online, but nothing worked, not even reinstalling MySQL
The issue just happens only with MySQL; Mongodb and Postgresql are working fine20 Replies
check if the port 3306 is free or not
https://apple.stackexchange.com/questions/295448/how-to-get-mysqls-port-on-mac-through-the-terminal <-- this is old, but might work
if you can't free that port, use a different port
@ἔρως it shows me like this, seem like this port didn't run then why i can't start mysql from brew services
btw, whenever i start mysql again, the another error happens, i also try all the solution in stackoverflow like use
restart
, add permission with chmod, but whenever i do it, it shows me successfully then when i check brew services
, it shows mysql
stoppedrun it as root
try
sudo
right?as the error says
i think it is
i don't know exactly if mac uses sudo or su
same error T^T
yeahh, it's also using
sudo
https://stackoverflow.com/a/69264825 <-- try this
Stack Overflow
brew services. Cant start service. get "Bootstrap failed: 5: Input/...
running brew services start mongodb-community which yields:
Bootstrap failed: 5: Input/output error
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/<myUserName>/Library/
if that doesn't work, remove mysql and try installing mariadb
i think i have tried it x'D but let me do it again
good luck
didn't work T^T alright let me try to install mysql but not via brew or if it's a last option i will install mariadb instead
Thank you so much for supporting me
try mariadb
usually it's better than mysql
oh reallyyyy, i must tryyyy
try it
Omg, it took me so many tries and errors, and finally, there is a stack overflow post that is also related and resolved my problem xD
https://stackoverflow.com/questions/70447598/brew-start-and-brew-restart-wont-start-service
i already fixed it, thank you yaaaa. So glad i know where was the error came from
Stack Overflow
brew start and brew restart wont start service
I installed [email protected] using brew. After installing, I started the service using brew services start [email protected]. Checking using brew services shows its working fine.
In any attempt after the first th...
which one of the answers worked?
The first answer with 52 score xD
it is an interesting solution