Backend/Database
-
[MySQL] GROUP BY 오류 해결 방법Backend/Database 2022. 1. 21. 01:36
java.sql.SQLException: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column '*******' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by Query: SELECT * FROM `*******` GROUP BY `*******` ORDER BY `*******` Parameters: [] MySQL 터미널에 다음과 같은 명령어를 입력해주면 된다. SET GLOBAL sql_mode=(SELECT REPLACE(@@..
-
[Eclipse/IntelliJ] org.mariadb.jdbc.Driver 오류 해결법Backend/Database 2021. 4. 20. 18:13
org.mariadb.jdbc.Driver 오류가 발생할때 라이브러리를 적용하면 쉽게 해결할 수 있습니다. 인텔리제이(IntelliJ) 해결법 1. Settings - ProjectStructure - ProjectSettings - Modules - Dependencies에 들어갑니다. 1. Settings - ProjectStructure - ProjectSettings - Modules - Dependencies에 들어갑니다. 하단에 있는 +를 눌러 mariadb jar를 선택하고 OK합니다. Apply 하고 OK 눌러서 나옵니다. Main 메소드가 있는 곳에서 우클릭하고 Run하면 작동합니다. 이클립스(Eclipse) 해결법 1. 프로젝트에 우클릭 후 Properties에 들어갑니다. Java B..