Need help activating Macports install of MySQL5 on Snow Leopard

William H. Magill magill at mcgillsociety.org
Mon Dec 14 16:24:30 PST 2009


Today, I have had occasion to install mysql for the first time -- I need it for a backend to a separate program.

Macports has been working fine after upgrading to Snow Leopard and re-installing,  and I have been using it for the things I've used it for in the past... no problems.
I'm a UNIX Systems Administrator by background, with virtually zero DBA experience. (And the little I had was with Ingress under VMS, long ago.)

All of the documentation at dev.mysql.com I can find is for Leopard. (And for their pre-packaged install GUIs).

The macports "port install mysql5" has worked fine... all the components and pre-requsites  are apparently installed (someplace, which is a separate problem).

Searching the web, I managed to  find a plist file for starting MySQL under Snow Leopard's Launchd... that works like a champ.

However, MySQL still did not work. (The daemon was not  continuing to run.)

So I started reading through logs.
Then I hunted around in the /opt/local/lib/msql5/bin directory and found:   mysql_install_db and ran it.

That apparently worked, as it created /opt/local/var/db

I then tried to run the admin routine it described...

nada... turns out there are a number of directories and permissions which need to be created and set,a
which were not done by the macports install of mysql5. -- Namely the /opt/local/var/db  and /opt/local/var/run trees.

Now the Daemon continues to run, but MySQL still needs "initializing."

I don't know if I still need to do more things using the macports mysql tools (and which ones), or if I need to find something specific to generic Mysql.
I'm assuming I am tripping over all of the things which only ever need to be done once when MySQL is first installed, and never again under updates.

So, I'm looking for some kind of tutorial/cookbook for "installing" MySQL5 on Snow Leopard.

Quite frankly, at this point, I don't know what i don't know, but assume it to be substantial.

T.T.F.N.
William H. Magill
# Flat-panel iMac (2.1) [800MHz - Super Drive - 768 Meg] OS X 10.4.11 
# iMac6,1 Core 2 Duo [2.16GHz - 3 GB 667] OS X 10.6.2
# MacBook Pro4.1 Core 2 Duo [2.5GHz - 4GB 667] OS X 10.6.2
# Mac mini Core Duo [1.66 Ghz - 2 GB 667]OS X 10.6.2
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg] Tru64 5.1a 
# XP1000 [Alpha 21264-3 (EV6) - 256 meg] FreeBSD 5.3
# XP1000 [Alpha 21264-A (EV6-7) - 256 meg] FreeBSD 5.3
magill at mcgillsociety.org
magill at mac.com
whmagill at gmail.com










More information about the macports-users mailing list