Post

macOS에서 mariadb 설치하기

0. 맥 앱 스토어에서 Xcode 설치

1. brew 설치: 터미널을 열고 다음 명령어를 입력

1
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. mariadb 설치

1
brew install mariadb

3. 서버 가동

1
2
3
4
5
mysql.server status # 상태확인
mysql.server stop # 정지
mysql.server start # 시작

mysql -uroot

4. root 비밀번호 변경

1
update user set authentication_string=password('비밀번호') where user='root';

 

https://cpuu.postype.com/post/24270 https://gomdoreepooh.github.io/notes/mysql-reset-password

This post is licensed under CC BY 4.0 by the author.