티스토리 뷰
Programming/데이터베이스(DB)
mysql error 1045 access denied for user 'root'@'localhost' 해결
불량시계 2022. 4. 17. 00:29에러내용 : mysql error 1045 access denied for user 'root'@'localhost'
내용 : root 계정에 대한 localhost 접근이 거부되었다.
원인 : mysql 설치 후 root 계정에 대한 비밀번호가 설정되지 않았기 때문이다.
해결방법 : root@localhost에 대한 비밀번호 설정
root@DESKTOP-8UHKC1S:/home/cms# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 8.0.28-0ubuntu0.20.04.3 (Ubuntu)
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> alter user root@localhost identified by '새로운 비밀번호';
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- #오라클
- 스프링부트 전환
- mysql access denied
- slf4j
- log4j slf4j binding
- 스프링부트
- ubuntu java 설치
- #JDBC
- 스프링부트 web.xml
- mysql error 1045
- log4j2
- log4j-slf4j-impl
- 우분투 자바설치
- 리눅스 자바설치
- wsl 자바설치
- win10 ubuntu java설치
- jar
- mysql 로그인 실패
- access denied for user 'root'
- linux java 설치
- springboot
- Springboot web.xml
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함