-
mySQL 다운받기Sql 2023. 5. 7. 00:29
mySql을 다운받아서 실행하려면,
https://dev.mysql.com/downloads/workbench/
여기서 워크밴치를 다운 받고,
https://dev.mysql.com/downloads/mysql/
위의 링크에서 mysql community를 다운받아야한다.
** workbench만 있을 경우, service를 실행할 수 없다.
다음과 같이, 환경 변수를 설정하고
cmd에서 mysql 커뮤니티가 설치되어 있는 파일의 경로로 이동해서
C:\Users\whdan\Downloads\mysql-8.0.33-winx64\mysql-8.0.33-winx64\bin>
mysqld --initialize 명령을 실행하고,
mysqld --install 로 서비스에 mysql을 생성하자
그리고 net start mysql 명령어를 실행하면 서비스를 실행시킬 수 있다.
마지막으로 mysqld -u root -p 명령을 실행하고, 비밀번호를 입력하면 mysql에 root 계정으로 접속할 수 있다.
비밀번호의 경우, 초기 비밀번호가 없거나 임시 비밀번호로 저장되어 있을 수 있다.
이 경우, 서비스를 종료하고 비밀번호를 초기화해서 접속해야한다.
'Sql' 카테고리의 다른 글
중복확인 쿼리문 (0) 2023.09.04 mySQL 버전에 따른 쿼리문 (0) 2023.06.25 mySql Connections 설정 ( IP 주소 이용 ) (0) 2023.04.17 제약조건 확인, 제약조건 제거 (0) 2023.03.24 My Sql 첫걸음 CH08. 트랜잭션 (0) 2023.03.17