mysql 8.0 password reset

2023. 6. 27. 00:11·백엔드

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
'백엔드' 카테고리의 다른 글
  • 도대체 왜 이런 DB 샤딩 방법을 쓰는 건가?
  • Http URL
  • 프로젝트 탄생 25주년을 기념하여 curl 8.0 출시
  • OAuth2
somoly
somoly
About me.
  • somoly
    somoly.tistory.com
    somoly
  • 전체
    오늘
    어제
    • 전체 (55)
      • SpringBoot (8)
      • Kotlin (5)
      • Javascript (4)
      • 백엔드 (6)
      • Linux (25)
      • Windows (1)
      • IT (2)
      • FF14 (1)
      • 애니 (1)
      • Figure (1)
      • 회사생활 (1)
  • 블로그 메뉴

    • HOME
    • TAGS
    • MEDIA
    • LOCATION
    • GUESTBOOK
    • ADMIN
    • WRITE
  • 링크

    • [FF14] 5.0 (71-80) 제작 레벨링 매크로
    • [FF14] 갈론드벨
    • [FF14] FFLogs
    • [FF14] Ariyala 장비 시뮬레이터
    • [FF14] 낚시 도우미
    • [FF14] 인테리어 정보
    • [FF14] 의상 코디 정보
  • 공지사항

  • 인기 글

  • 태그

    versioncomapre
    javascript
    리눅스
    Spring
    ubuntu
    tabulator
    종료
    피규어
    VirtualBox
    jvminline
    설치
    P2P
    utf-8
    83인치
    linux
    HTTP
    bcmod
    부팅
    Kotlin
    77인치
    string methods
    exchage method
    30일전
    동영상
    interactive table
    최후의 재림
    accesskey
    springboot
    dynamodb local
    우분투
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
somoly
mysql 8.0 password reset
상단으로

티스토리툴바