Category:Technology -> Adventures with the naked Mac Mini Server -> MySQL-Lion | ARTS & FARCES internet wiki

Category:Technology -> Adventures with the naked Mac Mini Server -> MySQL-Lion

Category:Technology -> Adventures with the naked Mac Mini Server -> Install MySQL on Lion

Install the MySQL database server

Unlike previous versions of OS X Server, the OS X 10.7.x Lion Server distribution does not include the MySQL database server. Instead the PostgreSQL database server is included. If you’re like me, most of your databases will be in MySQL and you probably won’t want to migrate from MySQL to PostgreSQL. Use these steps to install the current version of the MySQL database server:

  1. Download the Disk Image distribution of the current version of the 64-bit version of MySQL. The current MySQL version at the time of this writing is 5.5.16 and is labeled for Mac OS X 10.6 Snow Leopard. It works fine with Mac OS X 10.7.x Lion.
  2. Install the Disk Image distribution of the current version of MySQL.
  3. Add /usr/local/mysql/bin to your path by editing the ~/.bash_profile file in your home directory with your favorite text editor.
  4. Add the following to the .bash_profile file: export PATH=~/bin:/usr/local/bin:/usr/local/mysql/bin:$PATH
  5. export EDITOR=vim and save the .profile file.
  6. Log out of your terminal session, open a new terminal session, and enter: echo $PATH.
  7. Install the MySQLStartupItem.pkg.
  8. Double-click the MySQL.prefPane file to install the MySQL preferences pane in your System Preferences.
  9. Check the Automatically Start MySQL Server on Startup checkbox.

Categories:

Copyright © 1993–2012 ARTS & FARCES LLC. All rights reserved.