[cmd창 사용]테이블 백업 작업(테이블 구조만 백업)mysqldump -u root -p database --no-data > data_structure.sql 테이블 백업 작업mysqldump -u root -p [디비명] [테이블명] > 파일명.sqlmysqldump -u root -p [디비명] > 파일명.sql 테이블 복구mysql -u root -p [디비명] < 파일명.sql * CMD 경로 변경 후 사용하면 다른 위치로 변경됨 [MySQL Workbench]백업root 계정 로그인1. Navigator 접속 - Management2. Data Export - 스키마(디비 & 테이블) 선택3. Export Options - Export to Self-ContainedFile4. StartEx..
* root 계정에서 디비 생성 후 다른 계정 사용 시 권한 문제Error 1044 : Access denied for User ~ [root]* 디비 생성 -> 디비 목록 확인 >> grant all privileges on [DB명].* to 'ID'@'localhost' identified by 'PW' with grant option; >> flush privileges; [jspid]다시 DB 목록 확인 show databases;사용 use [DB명];
Insert title here WebContent/jsp5/dbConTest.jsp > lib 폴더에 추가 // 2. 설치되어있는 드라이버를 로드 Class.forName("com.mysql.jdbc.Driver"); // 3. 드라이버를 사용해서 디비 연결 아이디/비밀번호/디비 주소 // mysql-connector-java 6.XX 이상 사용시 디비 접근 주소(서버시간 인식 오류) // String dbURL = "jdbc:mysql://localhost:3306/itwill"; String dbURL = "jdbc:mysql://localhost:3306/itwill?serverTimezone=UTC"; String dbID = "jspid"; String dbPW = "jsppass"; Conn..
public class Test2 { // 식별자 : 클래스 이름, 변수, 상수, 메서드(함수) 이름 // 클래스 이름 대문자 시작, 나머지 소문자 시작 // 식별자 이름 만드는 규칙 // - 특수문자 사용 할 수 없음( _ $ 사용 가능 ) // - 한글 사용 할 수 있음 // - 자바 문법 키워드(예약어)는 사용 할 수 없음 // - 첫 번째는 문자로 숫자 사용 할 수 없음 // - true, false, null 사용 할 수 없음 // - 대소문자 구별 // - 길이 제한 없음 // 문자로 시작하면서 숫자, 특수문자( _ $ ) 사용 // int 1a; // int a%; int $a; int _abc; // int for; // int true; int abc; int Abc; int 한글변수; ..