이전엔 Oracle로 DB 연동을 했는데, MySQL으로 이관작업도 해보면 좋지 않을까 해서 MySQL을 설치해보려고 했다.
뭔가 설치할 때마다 한 번에 설치가 되는 법이 없었는데, 이번에도 그랬다.
결론부터 말하면, Windows 컴퓨터의 이름이 영어가 아니라서 경로명을 읽지 못해서 그렇다.
이번에 발생한 오류이다.

여기서 넘어가질 않았다..
재부팅하고, 파일 삭제해보고, 이것저것 시도해봐도 안 됐다.
검색을 해보니 컴퓨터 사용자명이 한국말이어서 이해를 못한 것이었다.
로그를 보면, 다음과 같았다.

아마 저부분이 문제였던 것 같다.
로그를 전체를 긁어보면
Beginning configuration step: Writing configuration file
Saving my.ini configuration file...
Saved my.ini configuration file.
Ended configuration step: Writing configuration file
Beginning configuration step: Updating Windows Firewall rules
Adding a Windows Firewall rule for MySQL80 on port 3306.
Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 3306" protocol=TCP localport=3306 dir=in action=allow
확인됨
Successfully added the Windows Firewall rule.
Adding a Windows Firewall rule for MySQL80 on port 33060.
Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 33060" protocol=TCP localport=33060 dir=in action=allow
확인됨
Successfully added the Windows Firewall rule.
Ended configuration step: Updating Windows Firewall rules
Beginning configuration step: Adjusting Windows service
Attempting to grant the required filesystem permissions to the 'NT AUTHORITY\NetworkService' account.
Granted permissions to the data directory.
Adding new service
New service added
Ended configuration step: Adjusting Windows service
Beginning configuration step: Initializing database (may take a long time)
Attempting to run MySQL Server with --initialize-insecure option...
Starting process for MySQL Server 8.0.39...
Starting process with command: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --console --initialize-insecure=on --lower-case-table-names=1...
C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.39) initializing of server in progress as process 18428
mysqld: File '.\?덈굹-bin.index' not found (OS errno 2 - No such file or directory)
The designated data directory C:\ProgramData\MySQL\MySQL Server 8.0\Data\ is unusable. You can remove all files that the server added to it.
Aborting
C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.39) MySQL Community Server - GPL.
Process for mysqld, with ID 18428, was run successfully and exited with code 1.
Failed to start process for MySQL Server 8.0.39.
Database initialization failed.
Ended configuration step: Initializing database (may take a long time)
뭐..이랬다.
분명 컴퓨터명이 영어로 설정이 되어있는 줄 알았는데 아니었다.
(Window 11 기준) 윈도우 마우스 우클릭 -> 설정 탭을 들어가면

이름 바꾸기를 클릭한 후 변경하고 , 재부팅 후에 다시 설치하면 원활하게 될 것이다 ..
!!!! 재설치하기 전에,
1. C:\ProgramData\MySQL 폴더 삭제,
2. C:\Program Files (x86)\MySQL 폴더 삭제,
3. 프로그램 추가/ 제거 -> MySQL 관련 삭제 후에,
4. 이름 변경 후,
5. 컴퓨터 재부팅하고,
재설치 하기 ★★
일단 나는 이 순서대로 진행한 후에, 재설치하니까 그제서야 설치가 원활하게 잘 됐다.
'에러일기' 카테고리의 다른 글
[Spring] org.springframework.beans.factory.UnsatisfiedDependencyException 에러 (0) | 2024.10.04 |
---|---|
[Spring] org.springframework.beans.factory.NoSuchBeanDefinitionException 에러 (0) | 2024.10.01 |
[JSP] jakarta.el.PropertyNotFoundException 에러 (0) | 2024.09.12 |
[JAVA] java.lang.ClassCastException 에러 (0) | 2024.09.12 |
Github - eclipse 연동 오류 : Can't connect to any repository: not authorized) (0) | 2024.09.12 |