728x90
1. mariadb 종료하기
brew services stop mariadb
2. mariadb brew로 제거하기
brew uninstall mariadb
3. mariadb 설정 파일 모두 제거하기
cd /opt/homebrew/var
rm -rf mysql
3-1. mariadb 설정 파일 모두 제거하기
cd /opt/homebrew/etc
rm -rf my.cnf*
4. brew로 설치하기
brew install mariadb
5. mariadb 켜서 확인하기
brew services start mariadb
brew services list
6. 실행하기
mariadb
7. 실행 확인 후 나가기
exit
8. 비번 셋팅하기
sudo mariadb-secure-installation
password 설정은 알아서 한 뒤에
나머지는 엔터 누르면 됩니다.
9. 접속하기
mysql -u root -p
끝
'서버' 카테고리의 다른 글
Spring boot) security모듈 있을 때와 없을 때 config처리방식(cors, csrf) (0) | 2024.08.15 |
---|---|
vscode에서 패키지 있는데 못 찾고 import 에러나는 현상 (java boot ) (0) | 2024.06.25 |
mac m1) mariadb or mysql 삭제 후 재설치(Can't connect to local server through socket '/tmp/mysql.sock') (0) | 2024.06.23 |
spring boot) 인텔리제이에서 clone 받은 프로젝트 안열리는 현상 (0) | 2024.06.17 |
nginx) react(spa) reverse-proxy를 이용해 cors에러 해결하기 (1) | 2024.06.08 |