Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- CodePipeline
- kafka
- bean
- producer
- mysql
- Kotlin
- topic생성
- offsetdatetime
- ECS
- API
- git
- AWS
- transactionaleventlistener
- entity graph
- CI
- K8s
- cd
- centos7
- Spring JPA
- Spring Data JPA
- QueryDSL
- consumer
- JPA
- mirror maker2
- spring
- spring kafka
- Kubernetes
- Entity
- Streams
- PAGING
Archives
- Today
- Total
Yebali
Mysql 계정 비밀번호 변경하기 본문
1. root 계정 로그인
$ mysql -u root -p
2. 'mysql' DB 사용
use mysql;
3. 비밀번호 변경
버전별 비밀번호를 변경하는 방법이 다르다.
#5.6 이하
> update user set password=password('new password') where user = 'root';
# 5.7 이상
> update user set authentication_string=password('new password') where user = 'root';
# 8.x 이상
> alter user 'root'@'localhost' identified with mysql_native_password by 'new password';
4. 변경사항 적용
> flush privileges;
'DB' 카테고리의 다른 글
[Database] Database의 Index (0) | 2022.11.20 |
---|---|
Mysql Join (0) | 2021.09.21 |
Mysql DB 백업 및 복구 (0) | 2021.09.21 |
Mysql 테이블 복사 (0) | 2021.09.21 |
CentOS7에 Mysql 5.6 설치하기 (0) | 2021.09.21 |