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
brew services
Name Status User File
docker-machine none
mongodb-community started tannguyenthanh ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
mysql stopped root ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
[email protected] stopped tannguyenthanh ~/Library/LaunchAgents/[email protected]
postgresql@14 started tannguyenthanh ~/Library/LaunchAgents/[email protected]
rabbitmq none
redis none
unbound none
brew services
Name Status User File
docker-machine none
mongodb-community started tannguyenthanh ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
mysql stopped root ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
[email protected] stopped tannguyenthanh ~/Library/LaunchAgents/[email protected]
postgresql@14 started tannguyenthanh ~/Library/LaunchAgents/[email protected]
rabbitmq none
redis none
unbound none
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 fine
20 Replies
ἔρως
ἔρως2mo ago
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
Acquaintance
AcquaintanceOP2mo ago
@ἔρως it shows me like this, seem like this port didn't run then why i can't start mysql from brew services
No description
Acquaintance
AcquaintanceOP2mo ago
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 stopped
No description
ἔρως
ἔρως2mo ago
run it as root
Acquaintance
AcquaintanceOP2mo ago
try sudo right?
ἔρως
ἔρως2mo ago
as the error says i think it is i don't know exactly if mac uses sudo or su
Acquaintance
AcquaintanceOP2mo ago
same error T^T
Acquaintance
AcquaintanceOP2mo ago
yeahh, it's also using sudo
No description
ἔρως
ἔρως2mo ago
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/
ἔρως
ἔρως2mo ago
if that doesn't work, remove mysql and try installing mariadb
Acquaintance
AcquaintanceOP2mo ago
i think i have tried it x'D but let me do it again
ἔρως
ἔρως2mo ago
good luck
Acquaintance
AcquaintanceOP2mo ago
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
ἔρως
ἔρως2mo ago
try mariadb usually it's better than mysql
Acquaintance
AcquaintanceOP2mo ago
oh reallyyyy, i must tryyyy
ἔρως
ἔρως2mo ago
try it
Acquaintance
AcquaintanceOP2mo ago
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...
ἔρως
ἔρως2mo ago
which one of the answers worked?
Acquaintance
AcquaintanceOP2mo ago
The first answer with 52 score xD
ἔρως
ἔρως2mo ago
it is an interesting solution
Want results from more Discord servers?
Add your server