1.데이터 베이스 관리시스템 Mysql 설치하기


나는 5.7.18 버전 설치

아래 있는 400MB 넘는 파일

 

https://downloads.mysql.com/archives/installer/

 

MySQL :: Download MySQL Installer (Archived Versions)

Please note that these are old versions. New releases will have recent bug fixes and features! To download the latest release of MySQL Installer, please visit MySQL Downloads. MySQL open source software is provided under the GPL License.

downloads.mysql.com

Server only 선택해서 설치 진행

 

 

 

 

2. MySQL Command Line Client 실행


PW 입력 후 로그인

 

 

 

3. 회원 데이터베이스 구축


 CREATE DATABASE BBS;

 

 USE BBS;

 

 CREATE TABLE USER(
    -> userID VARCHAR(20),
    -> userPassword VARCHAR(20),
    -> userName VARCHAR(20),
    -> userGender VARCHAR(20),
    -> userEmail VARCHAR(50),
    -> PRIMARY KEY (userID)
    -> );

 

  show tables;

 

desc user;

우리가 만든 user 테이블 안에 어떤 속성들이 들어가 있는지 확인

 

 

 

데이터 넣어주기 

INSERT INTO USER VALUES('gildong', '123456', '홍길동', '남자', 'gildong@naver.com');

 

commit;

 

desc user; 

잘 들어갔는지 확인

 

 

 

 

+ Recent posts