-
폐쇄망에서 mysql 설치하기꿀팁 2023. 4. 6. 13:20
https://sysong85.tistory.com/102
위에 블로그 대로 따라하면된다.
1. mysql .zip 파일 다운받는다.
2. C드라이브에 압축 풀고 디렉터리 이름을 mysql로 해준다.(이름 아무거나 해도 상관없다.)
3. mysql 디렉터리에서 my.ini 파일을 만들고 위에 블로그에서 써달라는 대로 쓴다.
3. mysql디렉터리에서 bin 디렉터리로 가서, 해당 경로를 시스템 환경변수에 등록해준다.
4. mysql/bin 에 관리자 모드로 cmd를 열어준다.
5. mysqld --initialize를 해준다.
6. mysqld --install 을 해준다.
7. net start mysql를 해준다.
8. mysql -uroot -p 로 들어간다.
9. 비밀번호는 data 디렉터리에 .err 확장자를 가진 파일을 잘 보면 나와있다.
10. 로그인 성공했으면
alter user 'root'@'localhost' identified with mysql_native_password by '사용할비밀번호';
이 명령어를 써서 비밀번호를 바꿔준다.
'꿀팁' 카테고리의 다른 글
ubuntu 20.04 sudo su 가 안될때 (0) 2023.04.18 EC2 java 17,18 설치 (0) 2023.03.31 gradle 로 다운받은 dependency 들을 전부 다른 폴더로 다운받는 방법 (0) 2023.02.27