Archives
Tags
- WebSecurityConfigurerAdapter
- TabLayout
- SharedPreferences
- web.xml
- MAC
- Fragment
- 화살표안됨
- Android
- MacOS
- Windows
- java
- Keymap
- Deprecated
- bean
- 복붙안됨
- CircleIndicator
- indicator
- MariaDB
- override
- 안드로이드
- Spring legacy
- spring security
- Homebrew
- ViewPager2
- Spring
- WebSecurityConfigurerAdapter Deprecated
- MariaDB 설치
- Today
- Total
초보 개발자 정선익의 개발일지
[MySQL/MariaDB] - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 본문
개발설정
[MySQL/MariaDB] - ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
3레벨 개발자 정선익 2022. 10. 28. 01:27맥에서 mysql or mariadb 를 설치하고 실행 했을 때 다음과 같은 에러가 발생했습니다.
ERROR 2002 (HY000) : Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
시작을 안했다고 생각 해서 다음을 작성했습니다.
brew services start mariadb
실행하니 다음의 에러가 나타났습니다.
mariadb bootstrap failed: 5: input/output error try re-running the command as root for richer errors. error: failure while executing;
해결
저의 경우에는 mysql의 설정파일을 제거 후 다시 재설치했습니다.
1. mariaDB 설정파일 제거
rm -rf /opt/homebrew/var/mysql
rm -rf /opt/homebrew/etc/my.cnf
2. mariaDB 재설치
brew reinstall mariadb
3. mariaDB 재시작
brew services restart mariadb
참고
많은 도움을 얻었습니다.
https://light-tree.tistory.com/245
M1 macOS에 homebrew를 사용한 MariaDB server 설치, 오류 해결
M1 맥북에 MariaDB, MySQL를 설치하려고 하니 시행착오를 많이 겪었습니다. MariaDB 부터 과정을 정리합니다.(MySQL은 다른 글에) 이 글을 보시는 분들이 바로 사용할 수 있도록 터미널 결과를 복사해서
light-tree.tistory.com
'개발설정' 카테고리의 다른 글
IntelliJ Backspace, Arrow keys not working in IDEA (6) | 2022.11.09 |
---|
Comments