Spring Boot9 [Spring Boot] mysql 데이터베이스 연결하기 1. dependency 추가 - springboot 버전이 2.x.x 인 경우는 runtimeOnly 'mysql:mysql-connector-java' - 3.x.x 이상부터는 runtimeOnly 'com.mysql:mysql-connector-j' 2. 데이터베이스 생성 나는 Command Line Client를 통해서 미리 데이터 베이스와 유저 생성했다. 3. application.properties에 데이터베이스 정보 입력 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/데이터베이스?useSSL=false&allowPublicKeyRetrieva.. 2023. 7. 30. [Spring Boot] MySQL Access denied for user java.sql.SQLException: Access denied for user 'likelion'@'localhost' (using password: YES) 이런 오류가 발생했을 때는 Bitnami WANP Stack이 설치되어 있는지 확인하고 이 앱을 실행하면 해결 된다. 2023. 7. 6. [Spring Boot] Could not find com.mysql:mysql-connector-j 오류 오류 com.mysql:mysql-connector-j 를 찾을 수 없음 build.gradle - springboot version 3.x.x는 connector-j만 지원 -> 버전을 낮추고, connector-java로 변경 빌드 성공 데이터베이스 생성하기 2023. 5. 29. 이전 1 2 다음