처음 맥에 MySQL을 설치해서 돌려봅니다. 2006년부터 맥을 써왔지만, 이번에 처음입니다.
http://www.mysql.com 에서 mysql-5.5.8-osx10.6-x86_64.dmg 파일을 다운로드 받아서 3가지를 설치했습니다.

./mysql-5.5.8-osx10.6-x86_64.pkg
./MySQLStartupItem.pkg
./MySQL.prefPane

MySQL.prefPane 이후에 이렇게 시스템 환경설정에 만들어집니다.

메뉴에 들어가면 Start/Stop 그리고 현재 DB 사용여부 표시 기능 밖에는 없습니다.

DB를 실행한 뒤에 다음과 같이 토비의 스프링3를 위해서 DB와 table을 만들었습니다.

kenuheoyimacbookpro-4:docs kenu$ mysql -u root mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6081
Server version: 5.5.8 MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| test               |
+--------------------+
4 rows in set (0.00 sec)

mysql> grant all privileges on *.* to spring@localhost
    -> identified by 'book' with grant option;
Query OK, 0 rows affected (0.04 sec)

mysql> create database springbook;
Query OK, 1 row affected (0.02 sec)

mysql> use springbook;
Database changed

mysql> create table users (
    -> id varchar(10) primary key,
    -> name varchar(20) not null,
    -> password varchar(10) not null
    -> );
Query OK, 0 rows affected (0.46 sec)

mysql> 

spring 아이디에 book 비번으로 접속 가능하게 하고 springbook 이라는 database를 만들고, 그 안에 users라는 table을 만든 것입니다. 

계속 진도 나가야겠습니다. 갈 길이 멉니다.

/System/Library/Frameworks/JavaVM.framework/Versions 디렉토리에서
CurrentJDK로 심볼릭 링크 걸려 있는 것을 1.6으로 바꿔주면 됩니다.

kenuheoyimacbookpro:~ kenu$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

kenuheoyimacbookpro:~ kenu$ which java
/System/Library/Frameworks/JavaVM.framework/Home/bin/java
...

kenuheoyimacbookpro:JavaVM.framework kenu$ ls -altr
total 72
drwxr-xr-x  84 root  wheel  2856 12 10 17:00 ..
lrwxr-xr-x   1 root  wheel    29 12 11 09:30 Libraries -> Versions/CurrentJDK/Libraries
lrwxr-xr-x   1 root  wheel    24 12 11 09:30 Home -> Versions/CurrentJDK/Home
lrwxr-xr-x   1 root  wheel    28 12 11 09:30 Commands -> Versions/CurrentJDK/Commands
lrwxr-xr-x   1 root  wheel    27 12 11 09:30 Classes -> Versions/CurrentJDK/Classes
drwxr-xr-x   7 root  wheel   476 12 11 09:30 Versions
lrwxr-xr-x   1 root  wheel    26 12 11 09:30 Resources -> Versions/Current/Resources
lrwxr-xr-x   1 root  wheel    23 12 11 09:30 JavaVM -> Versions/Current/JavaVM
lrwxr-xr-x   1 root  wheel    27 12 11 09:30 Frameworks -> Versions/Current/Frameworks
lrwxr-xr-x   1 root  wheel    94 12 11 09:30 CodeResources -> ../../../../../../../../../System/Library/Frameworks/JavaVM.framework/Versions/A/CodeResources
lrwxr-xr-x   1 root  wheel    24 12 12 19:43 Headers -> Versions/Current/Headers
drwxr-xr-x   3 root  wheel   408 12 12 19:43 .
kenuheoyimacbookpro:JavaVM.framework kenu$ which java
/System/Library/Frameworks/JavaVM.framework/Home/bin/java
kenuheoyimacbookpro:JavaVM.framework kenu$ cd Versions
kenuheoyimacbookpro:Versions kenu$ ls
1.3        1.4.1        1.5.0        A
1.3.1        1.4.2        1.6        Current
1.4        1.5        1.6.0        CurrentJDK
kenuheoyimacbookpro:Versions kenu$ ls -altr
total 56
drwxr-xr-x  3 root  wheel  102  7 18  2008 1.3.1
lrwxr-xr-x  1 root  wheel    3 12 10 17:00 1.4.1 -> 1.4
drwxr-xr-x  8 root  wheel  272 12 10 17:00 1.4.2
lrwxr-xr-x  1 root  wheel    3 12 11 09:30 CurrentJDK -> 1.5
lrwxr-xr-x  1 root  wheel    5 12 11 09:30 1.3 -> 1.3.1
lrwxr-xr-x  1 root  wheel    5 12 11 09:30 1.4 -> 1.4.2
lrwxr-xr-x  1 root  wheel    5 12 11 09:30 1.5 -> 1.5.0
lrwxr-xr-x  1 root  wheel    5 12 11 09:30 1.6 -> 1.6.0
lrwxr-xr-x  1 root  wheel    1 12 11 09:30 Current -> A
drwxr-xr-x  6 root  wheel  272 12 11 09:30 A
drwxr-xr-x  7 root  wheel  476 12 11 09:30 .
drwxr-xr-x  3 root  wheel  408 12 12 19:43 ..
drwxr-xr-x  8 root  wheel  340  2  2 10:46 1.6.0
drwxr-xr-x  8 root  wheel  306  2  3 13:53 1.5.0
kenuheoyimacbookpro:Versions kenu$ rm CurrentJDK
rm: CurrentJDK: Permission denied
kenuheoyimacbookpro:Versions kenu$ sudo rm CurrentJDK
Password:
kenuheoyimacbookpro:Versions kenu$ sudo ln -s 1.6 CurrentJDK
kenuheoyimacbookpro:Versions kenu$ ls -altr
total 56
drwxr-xr-x  3 root  wheel  102  7 18  2008 1.3.1
lrwxr-xr-x  1 root  wheel    3 12 10 17:00 1.4.1 -> 1.4
drwxr-xr-x  8 root  wheel  272 12 10 17:00 1.4.2
lrwxr-xr-x  1 root  wheel    5 12 11 09:30 1.3 -> 1.3.1
lrwxr-xr-x  1 root  wheel    5 12 11 09:30 1.4 -> 1.4.2
lrwxr-xr-x  1 root  wheel    5 12 11 09:30 1.5 -> 1.5.0
lrwxr-xr-x  1 root  wheel    5 12 11 09:30 1.6 -> 1.6.0
lrwxr-xr-x  1 root  wheel    1 12 11 09:30 Current -> A
drwxr-xr-x  6 root  wheel  272 12 11 09:30 A
drwxr-xr-x  3 root  wheel  408 12 12 19:43 ..
drwxr-xr-x  8 root  wheel  340  2  2 10:46 1.6.0
drwxr-xr-x  8 root  wheel  306  2  3 13:53 1.5.0
lrwxr-xr-x  1 root  wheel    3  2  3 13:54 CurrentJDK -> 1.6
drwxr-xr-x  7 root  wheel  476  2  3 13:54 .

kenuheoyimacbookpro:Versions kenu$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
kenuheoyimacbookpro:Versions kenu$


ps. eclipse 3.4 mac os x버전은 java6에서 안 돌아갑니다.

The Eclipse SWT framework doesn't support 64-bit Java. Unlike Swing, SWT uses old-skool Cocoa bindings and those are 32-bit. Until IBM gets around to moving SWT to Cocoa, your only option is to run Eclipse under Java 5.
from: http://forums.macosxhints.com/showthread.php?t=91060

3.5버전m4는 동작하더군요.

command+Q : 프로그램 종료
command+W : 현재 열린 웹페이지 또는 문서만 종료
command+tab : 열린 프로그램 선택 우측방향
command+` (tab키 위): 열린 프로그램 선택 좌측방향

당장 이게 제일 많이 쓰이는 듯 합니다.
2006년 구입한 구형 맥북프로 리셋할 일이 있어서 재설치하니 옛생각이 납니다.

Dock입니다.

파이어폭스 받아서 설치했습니다. Finder가 iTunes를 따라가기 전 좌측 메뉴의 모양입니다.

윈도우 업데이트 만큼이나 맥도 소프트웨어 업데이트가 잦습니다.

한참을 다운로드 받네요. ^^;

세 번을 업데이트를 더 했습니다.

Java5 까지만 지원됩니다. Java6와 Java7은 맥OS 10.4.x 에서는 지원되지 않는다고 합니다.

마찬가지로 마지막 업데이트인데 자바가 약간 아쉽습니다.

^^; 그냥 추억거리입니다.

+ Recent posts