본문 바로가기

sql7

쇼핑몰에 대한 sql create table item ( item_id bigint not null primary key auto_increment, reg_time datetime(6) null, update_time datetime(6) null, created_by varchar(255) null, modified_by varchar(255) null, item_detail tinytext not null, item_nm varchar(50) not null, item_sell_status enum ('SELL', 'SOLD_OUT') null, price int not null, stock_number int not null ); item 테이블 생성 create table item_img ( item_img_id b.. 2024. 2. 2.
docker 명령어 window 위에 가상 os 를 만든다. 가상os 1.nginx 80:80 포트로 2.myspl 3307:3306 포트로 #nginx 컨테이너 docker 을 사용해서 docker run --name pjj-nginx -v d:/nginx_work:/usr/share/nginx/html:ro -d -p 80:80 nginx docker exec -it pjj-nginx bash 윈도우 os에서 리눅스 os으로 바꾼다. cmd 창에서(visual studio code 를사용) cd /usr/share/nginx/html 로 옮긴다. cat index.html index.html의 내용을 보여준다. cat >>index.html index.html 안에 내용을 적을수 있다. cat >index.html in.. 2024. 1. 30.
database 연결해보기 create TABLE member ( member_id bigint not null primary key auto_increment, -- 자동으로 숫자 카운트 reg_time datetime(6) null, 시간 update_time datetime(6) null, 시간 created_by varchar(255) null, 문자열(255) modified_by varchar(255) null, 문자열(255) address varchar(255) null, 문자열(255) email varchar(255) null, 문자열(255) name varchar(255) null, 문자열(255) password varchar(255) NULL, 문자열(255) role enum ('ADMIN', 'USER.. 2024. 1. 22.