Launchctl Error Unloading Org.macports.mysql5
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Different Questions Tags Users Badges Unanswered Ask Question _ Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Stopping a macports installed mysql daemon up vote 5 down vote favorite 2 I'm trying to reset my root password on a macports installed MySQL on OS X. But none of the ways to do this that I can find works, for various reasons. One reason common to all is that I can't stop the mysql deamon. As I understand it, I should be able to stop it with sudo launchctl stop org.macports.mysql5 Which makes absolutely no difference. No error message, nothing. Is launchd really this sucky, or do I misuse it? Reasonably it should give me an error when it fails, but nope, nothing. Trying to kill the processes with kill -9 just makes them restart again, so that doesn't work either. I also tried sudo launchctl unload org.macports.mysql5 But that gives me this error: launchctl: Couldn't stat("org.macports.mysql5"): No such file or directory (And I must confess I don't understand what "Unload configuration files and/or directories" means, which is what the Unload command apparently does according to the little docs I can find). So, what now? macports launchd mysql share|improve this question asked Dec 29 '10 at 10:43 Lennart Regebro 20518 add a comment| 1 Answer 1 active oldest votes up vote 5 down vote accepted The correct answer is sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql5.plist And you start it with sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist Thanks to kh13org for the pointer. share|improve this answer answered Dec 29 '10 at 12:03 Lennart Regebro 20518 The file name may be slightly different. For example, on my system, the name is /Library/LaunchDaemons/org.macports.mysql55-server.plist. –Bill Lipa Dec 29 '14 at 18:27 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer
SCAP-on-Apple SmartCard Services WebKit XQuartz Contact Terms of Use Privacy Policy All user-submitted text and content on this website is licensed under a Creative Commons Attribution 2.5 License unless otherwise noted. Copyright © 2011 Apple Inc. All rights reserved. New Ticket Tickets Wiki Browse Source Timeline Roadmap Ticket Reports Search Search: Context Navigation ← Previous TicketNext Ticket → Ticket #19980 (closed defect: invalid) Opened 7 years ago Last modified 7 years http://apple.stackexchange.com/questions/5651/stopping-a-macports-installed-mysql-daemon ago mysql5 failed after upgrade Reported by: Dormilich@… Owned by: ryandesign@… Priority: Normal Milestone: Component: ports Version: 1.7.1 Keywords: Cc: robertlay@… Port: mysql5 mysql5-server Description after upgrading "mysql @5.0.67_1+server" (to "mysql5 @5.0.83_0") the MySQL server failed to start. found that neither the LaunchDaemon was linked, nor the socket file existed. after installing "mysql5-server @5.0.83_0" I got the link to the https://trac.macports.org/ticket/19980 LaunchDaemon, but still no socket file (using the old socked file gave error (38)). deactivating "mysql5 @5.0.83_0" broke down the whole mysql (so I re-activated it). any idea what else to do to get it running again? Change History comment:1 Changed 7 years ago by blb@… Owner changed from macports-tickets@… to ryandesign@… Port set to mysql5 mysql5-server comment:2 in reply to: ↑ description ; follow-up: ↓ 3 Changed 7 years ago by ryandesign@… Replying to Dormilich@…: after upgrading "mysql @5.0.67_1+server" (to "mysql5 @5.0.83_0") the MySQL server failed to start. Did you remember to stop the mysql 5.0.67 server before upgrading? If not, you need to stop that server now. You can restart the machine to do this, or you could probably also do it with mysqladmin. What command did you use to try to start the mysql 5.0.83 server? The easiest way to start and stop the server is "sudo port load mysql5-server" and "sudo port unload mysql5-server". found that neither the LaunchDaemon was linked, What do you mean "linked"? Do you just mean that the launchd plist didn't exist
SCAP-on-Apple SmartCard Services WebKit XQuartz Contact Terms of Use Privacy Policy All user-submitted text and content on this website is licensed under https://trac.macports.org/ticket/41806 a Creative Commons Attribution 2.5 License unless otherwise noted. Copyright © 2011 Apple Inc. All rights reserved. New Ticket Tickets Wiki Browse Source Timeline Roadmap Ticket Reports Search Search: Context Navigation ← Previous TicketNext Ticket → Ticket #41806 (closed defect: worksforme) Opened launchctl error 3 years ago Last modified 3 years ago mysql5 does not run Reported by: bpabbott@… Owned by: pixilla@… Priority: Normal Milestone: Component: ports Version: 2.2.1 Keywords: Cc: ryandesign@… Port: mysql5-server Description (last modified by ryandesign@…) (diff) I'm having trouble running mysql5. With Lion, I was successful following the instructions at the link below. wiki:howto/MAMP#mysql I've recently upgraded launchctl error unloading to Mavericks and returned to these same instructions. sudo port install mysql5-server sudo -u mysql mysql_install_db5 sudo chown -R mysql:mysql /opt/local/var/db/mysql5/ sudo chown -R mysql:mysql /opt/local/var/run/mysql5/ The directory /opt/local/var/log/mysql5 did not exist, so I created it and changed the permissions. sudo mkdir -p /opt/local/var/log/mysql5 sudo chown -R mysql:mysql /opt/local/var/log/mysql5/ Next I activated my MySQL server. sudo port load mysql5-server Which returned the error below. Error: org.macports.load for port mysql5-server returned: Launchd plist /Library/LaunchDaemons/org.macports.mysql5.plist was not found Please see the log file for port mysql5-server for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5-server/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port mysql5-server failed The log contains a bit more info. version:1 :debug:main Executing org.macports.main (mysql5-server) :debug:load load phase started at Fri Dec 13 18:27:18 EST 2013 :debug:load Executing org.macports.load (mysql5-server) :error:load org.macports.load for port mysql5-server returned: Launchd plist /Library/LaunchDaemons/org.macports.mysql5.plist was not found :debug:load Error code: NONE :debug:load Backtrace: Launchd plist /Library/LaunchDaemons/org.macports.mysql5.plist was not found while executing "$procedure $targetname" :info:load Warning: targets not executed for mysql5-server: org.macports.load