somoly.tistory.com
Published 2023. 6. 27. 00:11
mysql 8.0 password reset 백엔드

mysql 8.0 password 초기화

 

1. mysql 서비스 종료

(mac) brew services stop mysql

(linux) sudo systemctl stop mysqld

 

2. skip-grant-tables 옵션을 통해 데몬 시작

mysqld --console --skip-grant-tables

 

3. 비밀번호 초기화 (비밀번호 null 로 설정)

mysql> update mysql.user set authentication_string=null where user='root';

mysql> flush privileges;

 

4. 데몬 종료 (ctrl +c)

 

5. mysql 서비스 시작

(mac) brew services start mysql

(linux) sudo systemctl start mysqld

 

'백엔드' 카테고리의 다른 글

도대체 왜 이런 DB 샤딩 방법을 쓰는 건가?  (0) 2023.06.23
Http URL  (0) 2023.03.21
프로젝트 탄생 25주년을 기념하여 curl 8.0 출시  (0) 2023.03.21
OAuth2  (0) 2023.03.21
What is Redis?  (0) 2023.03.21
profile

somoly.tistory.com

@RxCats

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!