The Artima Developer Community
Sponsored Link

Java Buzz Forum
Running MySQL 5.1 on Mac OS X 10.5.2 [Client]

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Wolf Paulus

Posts: 692
Nickname: wolfpaulus
Registered: Jan, 2004

Wolf Paulus is an experienced software developer focusing on Java, XML, Mac OS X, wireless/mobile ..
Running MySQL 5.1 on Mac OS X 10.5.2 [Client] Posted: Mar 10, 2008 5:47 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Wolf Paulus.
Original Post: Running MySQL 5.1 on Mac OS X 10.5.2 [Client]
Feed Title: Wolf's Web Journal
Feed URL: http://wolfpaulus.com/feed/
Feed Description: Journal - dedicated to excellence, and motivated by enthusiasm to trying new things
Latest Java Buzz Posts
Latest Java Buzz Posts by Wolf Paulus
Latest Posts From Wolf's Web Journal

Advertisement
Mac OS X 10.5 Server comes with the MySQL pre-installed. However, the database server doesn't ship with the client version of OS X 10.5 Leopard, which most of us Mac users run. Here are the notes I took, putting MySQL 5.1 on a 2 GHz Intel Core Duo based iMac (none 64 bit) running OS X 10.5.2 (Client)

Installing MySQL 5.1 on OS X 10.5 (Leopard) Client

Download the pre-compiled module package in form of a diskimage (dmg), available at http://dev.mysql.com/downloads/mysql/ For the 2 GHz Intel Core Duo based iMac, I downloaded the 32-bit version mysql-5.1.23-rc-osx10.5-x86.dmg. Newer Macs, featuring a Core-2-Duo processor should work best with the 64-bit version.
Open (double-click) the dmg file, followed by running (double-click) the mysql-5.1.23-rc-osx10.5-x86.pkg package installer.

The package installer will install the mysql into /usr/local/mysql-5.1.23-rc-osx10.5-x86 and also create this shortcut /usr/local/mysql/

Installing the Preferences Pane won't do us any good, it does not work anymore with OS X 10.5. Instead, the launchd mysql.plist file needs to be created and stored in /Library/LaunchDaemons/ and also given ownership to root:

sudo chown root:wheel /Library/LaunchDaemons/mysql.plist

mysql.plist

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>GroupName</key> <string>mysql</string> <key>KeepAlive</key> <true/> <key>Label</key> <string>com.mysql.mysqld</string> <key>Program</key> <string>/usr/local/mysql/bin/mysqld_safe</string> <key>UserName</key> <string>mysql</string> <key>RunAtLoad</key> <true/> </dict> </plist>

This command line can now be used to start MySQL:

sudo launchctl load /Library/LaunchDaemons/mysql.plist

and to stop it:

sudo launchctl stop mysql
sudo launchctl unload /Library/LaunchDaemons/mysql.plist

Continue reading...

Read: Running MySQL 5.1 on Mac OS X 10.5.2 [Client]

Topic: Web Video Advertising: UnrulyMedia - A Review Previous Topic   Next Topic Topic: RIA Weekly #008 - Appcelerator, MIX08, SXSW, DRM in Flash from PeopleOverProcess.com

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use