티스토리 뷰
Database
log_bin_trust_function_creators (This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
초보의 CHOMAN 2019. 7. 17. 10:49관련 에러 메시지
ERROR 1418 (HY000)
This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable
function, trigger 생성에 대한 설정
디폴트 값은 OFF, 권한이 있더라도 function, trigger 생성할 수 없음
ON 인 경우 function, trigger 에 대한 안정성 체크 하지 않음
root 권한이 없는 user 가 생성한 function, trigger 를 일반 user 가 사용할 수 없음
root 권한이 있는 user가 function, trigger을 생성해야 한다.
상위 버전에는 해당 옵션이 없을수 있음
관련 변수 확인
show global variables like "log_bin_trust_function_creators";
설정
SET GLOBAL log_bin_trust_function_creators = 1;
my.cnf
log_bin_trust_function_creators=1
'Database' 카테고리의 다른 글
SET NAMES, SET CHARACTER SET (0) | 2019.09.19 |
---|---|
Character set Collation 차이 (0) | 2019.09.18 |
log_bin_trust_function_creators (This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) (0) | 2019.07.17 |
mysql index hint (0) | 2019.06.27 |
mysql_upgrade (mysql 업그레이드) (0) | 2019.05.24 |
2006 : MySQL server has gone away (0) | 2019.05.13 |
공유하기 링크
댓글
공지사항