2016년 10월 1일
프로그래밍+DB
9,154
http://gh0stsp1der.tistory.com/93 을 참고함. CentOS에 SVN 설치하기 (Windows 에 SVN 서버를 설치하는 방법은 SVN 서버 설치: Subversion-1.6.6(Tigris.org) 포스트를 참고. yum install -y subversion (서브버전 설치) mkdir /home/svn svnadmin create –fs-type fsfs /home/svn/backsan cd /home/svn/backsan/conf (위 명령을 차례로 내림) nano svnserver.conf 위와 같이 설정. anon-access = none auth-accress = write password-db = passwd realm = Backsan 2 kumi Repo nano passwd (접속정보 …
더 읽기 »
2016년 9월 2일
프로그래밍+DB
12,201
http://dev.mysql.com/doc/refman/5.6/en/windows-start-service.html 를 보고 참조함. C:\Program Files\MySQL\MySQL Server 5.6\bin 폴더에 접근 파일 -> 명령 프롬프트 열기 -> 관리자 권한으로 명령 프롬프트 열기 mysqld –install 위 구문을 실행하면 된다. Service successfully installed. services.msc 실행 MySQL 항목 더블클릭 시작 유형을 자동으로 선택하고 서비스를 [시작]하면 된다. MySQL에 접속되는지 확인한다. — 참고: 서비스 제거하기 — Removing the service To remove a server that is installed …
더 읽기 »
2016년 8월 31일
프로그래밍+DB
36,823
이번에는 JSP, Servlet 사용을 위한 Tomcat 8.0 + Eclipse 연계 방법을 알아봄. http://tomcat.apache.org/download-80.cgi 에서 Windows Service Installer 다운로드(8.0.x) next I Agree Next 포트 확인 후 Next Next Install Run Apache Tomcat… 조금 기다립니다. 알림 영역의 Apache Tomcat 9.0 아이콘을 더블클릭. 서비스를 중지합니다. Eclipse에서 Window -> Open Perspective -> Other… Java EE를 선택, OK Window -> Preferences Runtime Environments Apache Tomcat …
더 읽기 »
2016년 8월 11일
프로그래밍+DB
37,683
출처: <http://discafe.tistory.com/entry/mysql-%ED%95%9C%EA%B8%80-%EC%84%A4%EC%A0%95utf8> 위 글을 보고 아래와 같이 설정함. C:\Program Files\MySQL\MySQL Server 5.6 #아래는 2016-07-24 추가한 내용 character-set-client-handshake = FALSE init_connect=”SET collation_connection = utf8_general_ci” init_connect=”SET NAMES utf8″ character-set-server = utf8 [client] default-character-set = utf8 [mysql] default-character-set = utf8 [mysqldump] default-character-set = utf8 (그리고 mysqld 를 다시 시작함.) show variables like ‘c%’; 위 구문으로 character set이 대부분 utf8로 변경된 것을 볼 수 …
더 읽기 »
2016년 8월 11일
프로그래밍+DB
7,499
MySQL 백업 Command Prompt에서 실행 mysqldump -u 아이디 -p 패스워드 데이터베이스명 > 저장할 파일명 mysqldump -u root test1 > c:\test1.sql MySQL 복원 먼저 백업된 내용을 담을 데이터베이스를 생성 CREATE DATABASE newDB; mysql – u 아이디 -p 패스워드 데이터베이스명 < 저장된파일명 mysql -u root newDB < c:\test1.sql use newDB; show tables; 오호,,, 살아나 있네.
더 읽기 »
2016년 8월 11일
프로그래밍+DB
3,705
#cd /usr/bin // mysql 명령어가 있는 디렉토리로 이동 합니다. #mysql -u root -p mysql // mysql 접속 mysql -u 아이디 -p 패스워드 위와 같은 명령으로 접속 shell> mysql –host=127.0.0.1 shell> mysql –protocol=TCP The –protocol option enables you to establish a particular type of connection even when the other options would normally default to some other protocol. If the server …
더 읽기 »
2016년 8월 11일
프로그래밍+DB
10,851
관련글: http://gocoding.tistory.com/42 위와 같이 폰트가 깨질 때. 현재 설정: Eclipse Preferences -> General -> Workspace -> Text file encoding 설정이 UTF-8로 되어 있다. Run Configurations… VM arguments에 아래 문장 입력 -Dfile.encoding=MS949 Apply를 누르고, Run 단추를 누르면 OK! 잘 보입니다 ^^ 한글 폰트 깨지는 상황. Run Configurations… Common 탭에서 …
더 읽기 »
2016년 8월 11일
프로그래밍+DB
2,753
프로젝트 단위의 제대로 된 자바 프로그래밍을 할 때 사용 Open Perspective -> JAVA를 선택 우측상단에 Java 개발버튼보임 자바 프로젝트 만들기 JRE 버전 등을 선택 가능 자바 라이브러리들. Add External JARs를 눌러 외부 프레임워크를 추가할 때가 있다. 프로젝트가 만들어짐 클래스 추가 Finish를 눌러 진행 파일이 만들어짐. 소스코드에서 Source -> Generate Constructors from Superclass… 기본값대로 OK 기본 …
더 읽기 »
2016년 8월 11일
프로그래밍+DB
1,692
class CharToCode { public static void main(String[] args) { char ch=’A’; // char ch=65; int code = (int)ch; // ch to int type System.out.printf(“%c=%d(%#X)%n”, ch, code, code); char hch=’a’;// 97; System.out.printf(“%c=%d(%#X)%n”, hch, (int)hch, (int)hch); } } // find the korean windows class OverflowEx { public static void main(String[] args) { short sMin = -32768; short sMax …
더 읽기 »
2016년 8월 11일
프로그래밍+DB
2,257
변수: 값을 저장할 수 있는 메모리 상의 공간(기억공간) variable 미국식 [|veriəbl;|vӕriəbl] 영국식 [|veəriəbl] [형용사] 변동이 심한; 가변적인 참고 invariable variable temperatures(가변적인 기온) 출처: http://endic.naver.com/enkrEntry.nhn?sLn=kr&entryId=205d8e9c40c7439da55eebd7e85c3507&query=variable 사용법 자료형 변수명; // 변수 선언 int num; String name; num=50; // 자료 저장(초기화) name=”Hong”; // 문자열은 “”로 묶어준다. num=30; // num이 30이 된다. ‘변수‘ 값이 바뀜. 변수 선언과 초기화를 분리하는 것이 보기에 …
더 읽기 »