computer_study

[MySQL] 02.MySQL 설치 본문

스터디/이것이MySQL이다

[MySQL] 02.MySQL 설치

knowable 2022. 3. 29. 00:20

MacOS

Homebrew가 설치되어있다면 아래 명령어로 설치 가능

$ brew install mysql

서버 시작하기

$ mysql.server start

서버 종료하기

$ mysql.server stop

설정하기(유저 설정)

$ mysql_secure_installation

mySQL접속하기

> mysql -u root -p
# 위치를 mySQL이 있는 위치로 가서 실행한다. (/usr/ local/mysql)
# -u는 유저입력부분. (위 경우는 유저가 root인 경우)
# -p는 패스워드. 이전 설정에서 pw를 지정했다면, 위 명령어 이후 pw를 입력하면 된다.

 

MySQL Workbench 설치

MySQL data를 보기 쉽게 해주는 툴이다.

https://dev.mysql.com/downloads/workbench/

 

MySQL :: Download MySQL Workbench

Select Operating System: Select Operating System… Microsoft Windows Ubuntu Linux Red Hat Enterprise Linux / Oracle Linux Fedora macOS Source Code Select OS Version: All Windows (x86, 64-bit) Recommended Download: Other Downloads: Windows (x86, 64-bit), M

dev.mysql.com

이후 MySQL이 연결되어있는 서버연결 정보 입력

(TCP/IP , 3306포트)

 

 

샘플 데이터베이스 설치

MySQL에선 employees라는 샘플 데이터베이스를 제공하는 중

다운로드( https://cafe.naver.com/thisismysql/1144 ) 

 

이것이MySQL이다 : 네이버 카페

한빛미디어 [이것이 MySQL이다] 카페입니다.

cafe.naver.com

상세 설명( http://dev.mysql.com/doc/employee/en/ )

 

MySQL :: Employees Sample Database

Employees Sample Database For legal information, see the Legal Notices. For help with using MySQL, please visit the MySQL Forums, where you can discuss your issues with other MySQL users. Document generated on: 2021-12-22 (revision: 71511)

dev.mysql.com

 

'스터디 > 이것이MySQL이다' 카테고리의 다른 글

[MySQL] 06. SQL 기본  (0) 2022.04.04
[MySQL] 05. MySQL 유틸리티 사용법  (0) 2022.04.04
[MySQL] 03.MySQL 전체 운영 실습  (0) 2022.03.29
[MySQL] 01.DBMS 개요와 MySQL 소개  (0) 2022.03.24
[MySQL] 00.스터디 개요  (0) 2022.03.24
Comments