* 환경 : max osx 10.10.5 (요세미티)
pre-requisite : homebrew 설치
설치 및 실행
$ brew install mysql
$ mysql.server start
cf. 여기서 아래와 같은 에러가 뜰 수 있음.
... ERROR! The server quit without updating PID file (/usr/local/var/mysql/emzeiui-MacBook-Air.local.pid).
해결책 -- $ ps aux | grep mysql
이미 실행중인 mysql 의 pid를 확인하여 사살 -- $ kill (mysql_pid)
mysql 재실행 -- $ mysql.server restart
$ mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.13 Homebrew
Copyright (c) 2000, 2016, 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>
기타 mysql 참고 매뉴얼 : http://dev.mysql.com/doc/refman/5.7/en/connecting-disconnecting.html
'NOWS > MEMO' 카테고리의 다른 글
mount 명령어 (0) | 2017.09.07 |
---|---|
mac osx (10.10 이상) 에서 mysql 삭제 (0) | 2016.07.12 |
용어 정리 (0) | 2016.03.30 |
ESM vs. NMS, SMS (1) | 2016.03.30 |
데이터 품질 관리 (0) | 2016.03.30 |