MySQL 을 Yosemite(요세미티)에 설치하기
문제 1 : 현재의 최신 버전 MySQL 5.6.21은 매버릭스(Mac OS X 10.9)까지만 지원해서 설치시 오류 메시지가 발생한다.
해결 1 : 설치시 “사용자화(custom install)”를 선택해서 “start up item”을 체크해제하여야 한다.(http://coolestguidesontheplanet.com/get-apache-mysql-php-p…/)
문제 2 : MySQL이 요세미티에서는 맥 시작시 자동으로 실행되지 않고, 수동으로 실행시켜줘야 한다.
해결 2 : 아래 링크된 페이지(http://stackoverflow.com/questions/26476391/how-to-auto-load-mysql-on-startup-on-osx-yosemite)에서 소개하는 /Library/LaunchDaemons/com.mysql.mysql.plist 파일을 만든 다음, launchctl에 추가한다.
-다음의 파일 만들기
/Library/LaunchDaemons/com.mysql.mysql.plist
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14  | 
						<!--?xml version="1.0" encoding="UTF-8"?--> <plist version="1.0">   <dict>     <key>KeepAlive</key>     <true />     <key>Label</key>     <string>com.mysql.mysqld</string>     <key>ProgramArguments</key>     <array>       <string>/usr/local/mysql/bin/mysqld_safe</string>       <string>--user=mysql</string>     </array>           </dict> </plist>  | 
					
launchctl에 추가하기
| 
					 1 2 3  | 
						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  | 
					
