반응형

https://victorydntmd.tistory.com/202?category=698080

 

1) 다음 메이븐 에러 발생

org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration)

해결책: https://stackoverflow.com/questions/37555557/m2e-error-in-mavenarchiver-getmanifest

maven 3.X대에서 발생, 위 해결책대로 2.6쓰니까 괜찮아짐

 

2) 다음 에러도 발생

dynamic web module 3.0 requires java 1.6 or newer in Maven Project

One or more constraints have not been satisfied

해결안하고 tomcat으로 실행하니 org.springframework.web.context.ContextLoaderListener classNotFoundError 발생

maven library에 분명히 위 spring-web library잡혔는데 뭔가 연결이 안되고 있나보다

해결책: https://btssgm.tistory.com/entry/dynamic-web-module-error

다시 tomcat run하니 해결됨

 

3) 그다음엔 jdbc 연결이 안되는 에러 발생

quick하게 찾아보니 springJDBC에서는 mysql8.0 연결이 안되니 5.6으로 다운그레이드해야 한다는 곳도 있고 jdbc driver버젼을 고치면 된다는 곳도 있었음

일단 간단한 jdbc연결부터 시도했으나 다음 에러 발생

Thu Feb 28 17:51:12 KST 2019 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.

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.

 jdbc:mysql://localhost:3306/jpa?useSSL=false붙이니 위 ssl 관련 warning은 없어졌지만 여전히 연결은 안됨

 

? & todo) 

* DB는 어떤 protocol은 쓰는지? DBMS 마다 다른가? mysql 보니 ssl도 쓰는가보다

* port는 최상위 protocol layer에만 해당? ICMP 쓰는 ping은 port없음

* https://blog.woniper.net/256  eclipse>JPA Project로 JSE에서도 JPA 예제따라해보자!

 

반응형

'java, spring' 카테고리의 다른 글

javax.validation.constraints.NotBlank vs NotNull  (0) 2019.11.12
spring error  (0) 2019.06.14
spring  (0) 2019.06.12
spring security...  (0) 2019.06.11
jpa ...  (0) 2019.03.08
반응형
  • mySQL site에서 download메뉴로 가면 상용SW 설치하는 곳나옴, 돈안내고 개발용으로 쓰려면 developer zone으로 간 후 다운받아야함 (2020.01.23)
  •  
  • mysql: client 개념인듯
    • mysql -u [계정] -p [데이터베이스] - 여기에서 기본으로 들어갈꺼면[데이터베이스]는 생략가능한듯
    • mysql --defaults-file="C:\MYSQL\my.ini" -u root -p
    • -u 사용할 계정, 예) root
    • -p 패스워드 물어봄
    • --defaults-file
    • "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe" "--defaults-file=C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" "-uroot" "-p" "--default-character-set=utf8mb4"
  • mysqld: mysql daemon을 의미
    • 그냥 mysqld.exe 실행하니까 다음과 같은 에러발생
    • Can't change dir to 'D:\Program Files\MySQL\MySQL Server 5.7\data\'     (Errcode: 2 - No such file or directory)
      2015-11-17T08:30:18.822962Z 0 [Warning] TIMESTAMP with implicit DEFAULT     value is deprecated. Please use --explicit_defaults_for_timestamp server option     (see documentation for more details).
      2015-11-17T08:30:18.822962Z 0 [Warning] Insecure configuration for --secure-    file    -priv: Current value does not restrict location of generated files.     Consider setting it to a valid, non-empty path.
      2015-11-17T08:30:18.822962Z 0 [Note] mysqld (mysqld 5.7.9) starting as     process 1108 ...
      2015-11-17T08:30:18.838586Z 0 [Warning] Can't create test file D:\Program     Files\MySQL\MySQL Server 5.7\data\DESKTOP-RNBR3E8.lower-test
      2015-11-17T08:30:18.838586Z 0 [Warning] Can't create test file D:\Program     Files\MySQL\MySQL Server 5.7\data\DESKTOP-RNBR3E8.lower-test
      2015-11-17T08:30:18.838586Z 0 [ERROR] failed to set datadir to D:\Program     Files\MySQL\MySQL Server 5.7\data\
      2015-11-17T08:30:18.838586Z 0 [ERROR] Aborting

      (참고 https://stackoverflow.com/questions/33752407/mysqld-cant-change-dir-to-data-server-doesnt-start)

    • {mysql_home_dir}/data가 없어서 파일을 못써서 에러가 났다는 의미인듯 해서 data폴더 생성후 재실행하니 data폴더안에 에러로그가 쌓이고 역시 정상실행은 안됨, 에러로그안에는 data dictionary를 초기화못했다는 의미의 에러로그가 남아있었음
    • 뭔가 환경설정 세팅에 오류가 있는 것 같음
    • 결국 mysqld.exe --defaults-file=C:\ProgramData\MySQL\MySQL Server 8.0\my.ini 로 하니 해결됨
    • my.ini가 환경설정 관련 내용을 담고 있음
    • root PW 잊어버려서 mysqld.exe --defaults-file=C:\ProgramData\MySQL\MySQL Server 8.0\my.ini --skip-grant로 실행했으나 이렇게는 daemon이 떴다가 금방 꺼짐 뭔가 설정이 안맞는듯
 
  • mySQL 에러코드
    • ERROR 1045 (28000): Access denied for user
      • password 틀렸거나 password사용하지 않은 접근했을 때
      • 해결법: https://zetawiki.com/wiki/MySQL_ERROR_1045_%EC%A0%91%EA%B7%BC_%EA%B1%B0%EB%B6%80#cite_note-1
  • mysql command option 아래에서 참고할 것
    • https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_datadir
  • root pw 변경방법
    • https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html
  • 환경설정인 cnf(리눅스), ini(윈도우인듯) 파일 사용방법 관련
    • https://dev.mysql.com/doc/refman/8.0/en/option-files.html
    • 윈도우에서는 MySQL Installation Wizard를 사용해서 설치했다 면 --defaults-file="C:\\ProgramData\\MySQL\\MySQL Server 8.0\\my.ini" 옵션을 추가해줘야함

-------------------------------------

2019/03/06 mysqld 실행하니 다음 에러 발생하면서 또 안됨 ㅠㅠ

 innodb_system data file 'ibdata1' must be writable 

다음과 같이 이것저것 조치하니까 됨

  • C:\ProgramData\MySQL\MySQL Server 8.0\Data\irdata1 파일의 쓰기권한이 없던 user에게 권한부여
  • C:\ProgramData\MySQL\MySQL Server 8.0를 D:\로 이동해보고 다시 원복함

-------------------------------------

workbench는 아무거나 실행되지 않고 새로 설치한 것으로만 실행됨

기존 workbench는 다음 에러메세지뜨며 실행안됨

Internal Error Exception caught while processing action from home screen: bad conversion

반응형

'db' 카테고리의 다른 글

oracle VS mysql  (0) 2020.02.26
mysql query tip  (0) 2020.01.31
H2 DB 사용방법  (0) 2019.10.30
mysql.*, information_schema.*  (0) 2019.09.06
daily check query (mysql & oracle)  (0) 2019.07.17

+ Recent posts