티스토리 뷰
brew 를 통해서 설치하는 방법
Mysql install
- installed mysql with brew install mysql
brew update
brew install mysql
brew install mysql56
ran the commands brew suggested: (see note: below)
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
mysql_install_db --verbose --user=
whoami--basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
- Start mysql with mysql.server start command, to be able to log on it
Used the alternate security script:
/usr/local/Cellar/mysql/5.5.10/bin/mysql_secure_installation- Followed the launchctl section from the brew package script output such as,
#startlaunchctl load -w ~Library/LaunchAgents/homebrew.mxcl.mysql.plist
launchctl load -w /usr/local/opt/mysql/homebrew.mxcl.mysql.plist
#stoplaunchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
계정 생성
MySQL 5.7.6 and later:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
MySQL 5.7.5 and earlier:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');
FLUSH PRIVILEGES;
4. PATH 추가
/usr/local/opt/mysql/bin
실행
mysql.server start
Mysql uninstall
Step-by-step:
brew remove mysql
brew cleanup --force
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo rm -rf /usr/local/var/mysql
'개발' 카테고리의 다른 글
java 배열에서 동일한 내용의 카운트를 체크해보자. (0) | 2020.11.22 |
---|---|
Mac 에 MongoDB 설치하기 (0) | 2020.04.22 |
Toy Project - 라즈베리카메라로 영상취득 후 번호 맞추기 01. 환경 구성 (0) | 2018.10.18 |
Docker 시작하기 (0) | 2017.10.16 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- pip freeze #패쇄망 #wheel
- Lodash
- importlib
- sorted
- python의 Reflection
- pyenv
- backup
- 동적클래스생성
- Selenium
- vscode
- redmine plugin
- conda init
- bootrap
- zsh
- selenium #chromedriver
- inspect.py
- gitlab
- jqzip
- jupyter lab
- elasticsearch
- virturalenv
- __code__
- covid19
- docker
- Restore
- anaconda env
- 호스트와 시간맞추기
- HashMap.getOrDefault
- jqgrid
- MAC
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함