• Skip to main content

Victor Font Consulting Group, LLC

The DEX Intranet Specialists

Call Us:

+1 919-604-5828

  • Home
  • Care Plans
    • Care Articles
    • Optional Subscriptions
  • Consultations
  • Products
    • Code Snippets
    • Public GitHub Repositories
    • Gist Snippets
    • Pastebin Snippets (Free)
    • Free Plugins
  • FAQs
  • Support
    • Graphic Design
  • Contact
    • Speakers
    • Portfolio
  • Resources
    • Free WordPress Video Training
    • Tutorials
    • Articles
    • Cybersecurity
    • EU Referral Network
You are here: Home / Code Snippet / AutoStart MySQL after Yosemite Upgrade

AutoStart MySQL after Yosemite Upgrade

By Victor M. Font Jr.
November 15, 2014Leave a Comment

MySQL Logo - Used with PermissionIt may have come as a surprise to you, but with the release of OSX Yosemite startup items are finally deprecated. Apple announced quite some time ago that startup items would be deprecated, they just never said when it would happen. But now we know that it happened with Yosemite.

If you run MySQL on your Mac, you discovered that it no longer starts when the OS restarts. You also learned that checking "Automatically Start MySQL Server on Startup" in the MySQL Preference Pane installed in System Preferences has no effect on starting MySQL either.

MySQL Preference Pane in System Preferences

There is a solution, however. The answer lies in creating a MySQL Launch Daemon. The process is documented at the Mac Developer Library in a document titled Creating Launch Daemons and Agents. But rather than have you read through a lot of dry documentation, create a new file called com.mysql.mysql.plist. Save it to Macintosh HD/Library/LaunchDaemons/.



  
    KeepAlive
    
    Label
    com.mysql.mysqld
    ProgramArguments
    
      /usr/local/mysql/bin/mysqld_safe
      --user=mysql
    
  

 

Now change the permissions and add it to launchctl:

sudo chown root:wheel /Library/LaunchDaemons/com.mysql.mysql.plist
sudo chmod 644 /Library/LaunchDaemons/com.mysql.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist
 

If you did everything correctly, MySQL will launch every time your system restarts.

 
  • 15shares
  • Facebook0
  • Twitter0
  • Pinterest0
  • LinkedIn14
  • Print
  • SMS0

About Victor M. Font Jr.

Victor M. Font Jr. is an award winning author, entrepreneur, and Senior IT Executive. A Founding Board Member of the North Carolina Executive Roundtable, he has served on the Board of Advisors, of the North Carolina Technology Association, the International Institute of Business Analysis, Association of Information Technology Professionals, Toastmasters International, and the North Carolina Commission for Mental Health, Developmental Disabilities, and Substance Abuse Services. He is author of several books including The Ultimate Guide to the SDLC and Winning With WordPress Basics, and Cybersecurity.

Reader Interactions

VictorFont.com runs on the Genesis Framework

Genesis FrameworkThe Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go.

Check out the incredible features and the selection of designs. It's that simple—start using Genesis now!

Click here to download The Genesis Guide for Absolute Beginners (PDF - 1.4 MB)

Leave a Reply Cancel reply

Your email address and website will not be published. Required fields are marked *
Posting a comment means that you agree with and accept our Comment & Product Review Policy

Call: +1 919-604-5828

Send us an E-mail

Accessibility Statement | Affiliate Marketing Disclosure | Capability Statement

Cookie Policy | Comment & Product Review Policy | Privacy Policy | Site Map | Terms & Conditions

Copyright © 2003–2023 Victor M. Font Jr.

Return to top of page