<html>
이유는 모르지만 다음날 해결은 했다..
간단하게 mysql터미널에서 켜서 db를 먼저 생성하고 그다음 계정에 grant all privill
아근데cli환경에서 하면 되는데 왜 툴에서는 안되는 건지 .. /이유를 알구싶다구/
비 기능적 요구사항에 해당함
자바 p. 507
DTO
테이블당 DTO하나
객체를 담는 클래스
내가 했던 BaseUser, BaseRoom 같은 클래스가 이거였구나..!!
롬복은 다운로드 후 관리자권한으로 실행한 cmd에서 설치를 해주어야 한다.
위 사진처럼 설치된 파일의 폴더 경로를 복사해서 아래처럼 붙여주면 lombok이 설치된 디렉토리로 쉽게 이동할 수 있다.
그리고 java -jar lombok.jar를 입력해준다.
그러면 설치가 시작되는데 아래 사진처럼 이클립스 실행파일을 입력해준다. (자동으로 찾아주면 냅둔다)
경로는 우클릭> 속성으로 알수 있다.
설치 성공
이클립스 실행하여 project Explorer에서 우클릭, property에서 class path에 롬복파일을 등록 해준다.
dbms 출력화면 켜기
- 보기 >> DBMS
create schema itworld3;
create user 'super3'@'%' identified by '1004';
grant all privileges on itworld3.* to 'super3'@'%';
flush privileges;
show grants for 'super3'@'%';
use itworld3;
deptcreate table dept (
deptno int,
dname varchar(14),
loc varchar(13)
);
deptInsert into DEPT (DEPTNO,DNAME,LOC) values (10,'ACCOUNTING','NEW YORK');
Insert into DEPT (DEPTNO,DNAME,LOC) values (20,'RESEARCH','DALLAS');
Insert into DEPT (DEPTNO,DNAME,LOC) values (30,'SALES','CHICAGO');
Insert into DEPT (DEPTNO,DNAME,LOC) values (40,'OPERATIONS','BOSTON');
위 코드 처럼 DB툴 스크립트에서 db생성, 계정생성, 권한부여까지 할 수 있다.
create schema itworld3; create user 'super3'@'%' identified by '1004'; grant all privileges on itworld3.* to 'super3'@'%'; flush privileges; show grants for 'super3'@'%';
cli에서 하는 법
'%' 의 의미는 외부에서의 접근을 허용
- 부록 p 44~74