Search

[MySQL8] incompatible with sql_mode=only_full_group_by error

mysql 8버전에서 group by 실행시 에러메세지 출력
this is incompatible with sql_mode=only_full_group_by
보안때문에 groupy 절외에 데이터를 참조할수 없다고 한다.
해결방안은 mysql root 권한으로 콘솔로 접근하여 아래 명령어 실행
# MySQL 콘솔 root 접근 $ mysql -uroot -p pasword: mysql> # 명령어 실행 SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
Bash
복사
ⓒ VeriCras 2024
vericras@gmail.com