'Database > MySQL' 카테고리의 다른 글

mySQL 에서 날짜 이용하기/ 더하기 빼기  (0) 2020.06.26
mysql 외래키 foreign key 설정  (0) 2020.06.24
mysql ssl 오류 났을 경우  (0) 2020.06.23
my SQL 자바와 연결하기  (0) 2020.06.22
mysql 세팅  (0) 2020.06.19

 

Tue Jun 23 09:16:59 KST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

 

context.xml에서 위와 같이 useSSL=false 로 바꾸어준다

 

참고 사이트

https://leejune.tistory.com/5

 

mysql 연결할때 발생되는 SSL 에러

mysql  jdbc 커넥터로 연결했을때 이클립스창에서 나온 에러입니다. WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and..

leejune.tistory.com

 

'Database > MySQL' 카테고리의 다른 글

mysql 외래키 foreign key 설정  (0) 2020.06.24
mysql 시퀀스 auto_increment 생성 초기화  (0) 2020.06.23
my SQL 자바와 연결하기  (0) 2020.06.22
mysql 세팅  (0) 2020.06.19
mySQL 설치  (0) 2020.06.19

 

톰캣 my sql 연결 정보

tomcat.apache.org/tomcat-8.5-doc/jndi-datasource-examples-howto.html#MySQL_DBCP_2_Example

 

Apache Tomcat 8 (8.5.56) - JNDI Datasource How-To

JNDI Datasource configuration is covered extensively in the JNDI-Resources-HOWTO. However, feedback from tomcat-user has shown that specifics for individual configurations can be rather tricky. Here then are some example configurations that have been poste

tomcat.apache.org

 

 

my sql 연결 라이브러리

mysql-connector-java-5.1.39-bin.jar
0.94MB

 

 

web.xml

<!-- 	mysql -->
  <resource-ref>
      <description>DB Connection</description>
      <res-ref-name>jdbc/TestDB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
  </resource-ref>

위 코드 추가

 

 

context.xml

<Context>

  <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
               maxTotal="100" maxIdle="30" maxWaitMillis="10000"
               username="bitc" password="bitc5600" driverClassName="com.mysql.jdbc.Driver"
               url="jdbc:mysql://localhost:3306/test_sch"/>

</Context>

위 코드 추가 (아이디 비밀번호 url을 체크한다)

 

 

DBconn 관련 자바파일

Context initContext = new InitialContext();
Context envContext = (Context) initContext.lookup("java:/comp/env");
DataSource ds = (DataSource) envContext.lookup("jdbc/TestDB");
Connection conn = ds.getConnection();

jdbc/TestDB에 연결 해준다.

 

 

'Database > MySQL' 카테고리의 다른 글

mysql 외래키 foreign key 설정  (0) 2020.06.24
mysql 시퀀스 auto_increment 생성 초기화  (0) 2020.06.23
mysql ssl 오류 났을 경우  (0) 2020.06.23
mysql 세팅  (0) 2020.06.19
mySQL 설치  (0) 2020.06.19

'Database > MySQL' 카테고리의 다른 글

mysql 외래키 foreign key 설정  (0) 2020.06.24
mysql 시퀀스 auto_increment 생성 초기화  (0) 2020.06.23
mysql ssl 오류 났을 경우  (0) 2020.06.23
my SQL 자바와 연결하기  (0) 2020.06.22
mySQL 설치  (0) 2020.06.19

 

mysql 설치법

https://getinthere.tistory.com/15

 

스프링부트 with JPA 블로그 1강 - 환경세팅

1. Oracle JDK 1.8 설치 https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html Java SE Development Kit 8 - Downloads Java SE Development Kit 8 Downloads Thank you for downloading..

getinthere.tistory.com

 

youtu.be/6bhF5o4gAOs?list=PL93mKxaRDidECgjOBjPgI3Dyo8ka6Ilqm

 

 

https://dev.mysql.com/downloads/windows/installer/8.0.html

 

MySQL :: Download MySQL Installer

Select Operating System: Select Operating System… Microsoft Windows Select OS Version: All Windows (x86, 32-bit) Windows (x86, 32-bit), MSI Installer 8.0.20 24.4M (mysql-installer-web-community-8.0.20.0.msi) MD5: 26ae47807122bf0052b99ebf893b0dac | Signat

dev.mysql.com

 

 

워크벤치 포함버전 다운로드

 

5.7 버전을 쓸 사람은 Looking for the latest GA version을 클릭!!

 

노땡스

 

 

프로그램 실행

 

 

 

 

다설치

excute 클릭

 

 

다설치

 

 

넥스트

 

 

스탠드얼론 넥스트

 

 

넥스트

 

 

 

 

비번설정

 

 

 

 

 

 

넥스트

 

 

 

 

익스큐트

 

 

넥스트

 

 

넥스트

 

 

넥스트

 

 

비번입력 후 체크

 

 

익스큐트

 

 

넥스트

 

 

피니쉬

 

 

 

 

 

 

클릭

 

설치성공

 

 

 

'Database > MySQL' 카테고리의 다른 글

mysql 외래키 foreign key 설정  (0) 2020.06.24
mysql 시퀀스 auto_increment 생성 초기화  (0) 2020.06.23
mysql ssl 오류 났을 경우  (0) 2020.06.23
my SQL 자바와 연결하기  (0) 2020.06.22
mysql 세팅  (0) 2020.06.19

 

풀스캔

 

 

인덱스 이름 확인

 

 

힌트

/*+*/

 

 

 

인덱스를 이용한 정렬

 

 

오프셋을 이용한 일부분 가져오기

여기서 숫자 1의 자리만 바꿔주면서 퍼올리면 된다

 

 

 

 

 

 

 

 

사진을 보자

블록을 만들어서 실행하면

sql문은 데이터베이스에서 작동하고

변수는 plsql엔진에서 작동된다

+ Recent posts