db3 [ERROR] "could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement" "could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement" 어제까지 잘 되었는데, 갑자기 이런 에러가 떴다. 물론 내가 아닌 다른 분이 작업을 진행하시고 계셨던 걸 반영이 되기는 했다. 검색을 해봤더니, DB랑 Entitiy가 맞지 않아서 발생하는 오류라고 참고 블로그에 있는 분이 적어주셨다. 사실 테스트를 위한 로컬 db라서 나는 create로 db를 초기화했지만? 정말 운영 중인 db라면 눈앞이 캄캄하다. 어렵고 어려운 게 db인 것 같다. 참고: https://velog.io/@dmdwns2/Error-could-not-execute-s.. 2024. 2. 29. [MariaDB] UBUNTU MariaDB 사용 db 생성, 삭제, 조회 등 # 버전확인 > mariadb --version # 마리아db 사용 > sudo mariadb # 마리아db 내에서 버전 확인 > select version() # 데이터베이스 생성 > create database temps; # 데이터베이스 확인 > show databases; # 데이터베이스 삭제 > drop database temps; # 계정 생성 > create user 'username'@'%' identified by 'password'; # 권한 생성 > grant all privileges on temps.* TO 'username'@'%'; # 'username'에는 본인이 쓸 username을 'password' 또한 본인이 쓸 패스워드를 입력한다. # 데이터베이스 사용 > use t.. 2023. 5. 9. [JAVA/SPRING] Unknown database 'db_condingrecipt' 2023-04-04T15:35:30.988+09:00 ERROR 16388 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization. 컴파일 했는데, 마지막 줄에서 ERROR가 떴다. Unknown database 'db_condingrecipt' 디비 생성을 안 해서 뜨는 오류였다. create database db_codingrecipe; 디비 생성 완료. 에러가 안 뜬다. 테이블 사용 및 확인을 위해서는 use db_codingrecipe; 입력 후, 테이블 및 데이터를 확인할 수 있다. 2023. 4. 10. 이전 1 다음