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