mysql root 비번
811
작성한 질문수 8
- 먼저 유사한 질문이 있었는지 검색해보세요.
- 서로 예의를 지키며 존중하는 문화를 만들어가요.
- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
mysql 초기 비번 설정 되어 있는지 아래와 같이
계속 root 접속이 안됩니다..
구글링 해서 root 비번 변경하려고 계속 해봤는데.,. 계속 안되네요..
- 아래 -
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin> mysql -u root -p mysql
Enter password: ********
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin> mysql -u root -p mysql
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin>mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin>mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- 아래 2 (구글링 root 초기화) -
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld.exe --skip-grant
2021-10-10T10:01:11.216348Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.25) starting as process 1624
2021-10-10T10:01:11.228426Z 0 [Warning] [MY-010091] [Server] Can't create test file C:\Program Files\MySQL\MySQL Server 8.0\data\mysqld_tmp_file_case_insensitive_test.lower-test
2021-10-10T10:01:11.228752Z 0 [Warning] [MY-010091] [Server] Can't create test file C:\Program Files\MySQL\MySQL Server 8.0\data\mysqld_tmp_file_case_insensitive_test.lower-test
2021-10-10T10:01:11.229557Z 0 [ERROR] [MY-013276] [Server] Failed to set datadir to 'C:\Program Files\MySQL\MySQL Server 8.0\data\' (OS errno: 2 - No such file or directory)
2021-10-10T10:01:11.234033Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-10-10T10:01:11.235171Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.25) MySQL Community Server - GPL.
C:\Program Files\MySQL\MySQL Server 8.0\bin>
- 아래 (구글 초기화2) ---
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin>mysqld --skip-grant
2021-10-10 19:23:50 0 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
2021-10-10 19:23:50 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin>mysqld.exe --skip-grant --explicit_defaults_for_timestamp=1
2021-10-10 19:24:08 0 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin>mysqld.exe --skip-grant --explicit_defaults_for_timestamp=1
2021-10-10 19:25:55 0 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin>
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin>mysql.exe -u root --console
mysql.exe: unknown option '--console'
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin>mysql.exe -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
어떻게 하면 될까요.. ㅠ 계속 커넥션 못해서 담 강의를 못 가고 있습니다. (2일 째..)
답변 2
0
mysql -u root -p
이렇게 하시면 아래처럼 패스워드 입력이 나오면 그냥 엔터치시면 접속이 됩니다.
Enter password : 엔터
mysql>여기서 root패스워드를 새로 지정해주시면 되구요^^
0
그냥 엔터 치면 패스워드가 있다고, 아래와 같이 에러가 발생합니다.
(전자정부 설치 이후 따로 패스워드 설정 안했음)
C:\eGovFrame-3.9.0\bin\mysql-5.6.21\bin> mysql -u root -p mysql
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
WEB-INF 파일 관련 53강 에러발생
0
208
2
질문드립니다.
0
201
2
질문이있습니다.
0
150
2
bin폴더가 존재하지않아요
0
205
2
Mysql 이클립스랑 연동하는 부분에서 ...
0
203
2
response.sendRedirect / forward
0
240
2
Export하기
0
147
1
초기 설정
0
172
2
콘솔에 출력이 안됩니다.
0
193
2
mysql 실행안됨
0
203
1
stop.bat 실행오류
0
141
1
mysql startup.bat 오류
0
215
2
34강 질문 있습니다!
0
195
2
전자정부프레임워크
0
307
2
22강 에러관련 짊문입니다
0
180
1
강의 20강 질문 및 오류관련
0
214
1
전자정부프레임워크 질문입니다.
0
241
1
My sql 비밀번호 설정 오류
1
481
1
화질이 계속 720p인데 1080은 안되는건가요?
0
336
1
53강 후반부 경로
0
289
2
오류가 발생하였는데 왜 일까요...?
0
423
1
mysql 설정에서 키가 먹지 않습니다
0
347
2
13강 test.jsp 질문 드려요
0
349
1
3강 mysql 질문입니다
0
322
1





