MoreLean

This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled 본문

Programmer/Mysql

This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled

judeKim' 2015. 3. 15. 15:41
반응형

mysql 에서 function을 추가하려 SQL create query를 복사후 실행했더니 다음과 같은 오류가 발생하며 생성되지 않았다. 

This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled

엇 이게 뭐지 했는데, 구글신 영접하여 확인해보니 환경설정이 되어있지 않아서 생기는 문제란다. 


http://www.jamediasolutions.com/blog/deterministic-no-sql-or-reads-sql-data-in-its-declaration.html


가볍게 설정하려 했으나 AWS 의 RDS 를 쓰는 관계로 직접 수정은 권한 없음. 


Parameter Group에서 수정하여 적용하면 1분 이내에 적용 되어 사용 할 수 있도록 된다. 


 SET GLOBAL log_bin_trust_function_creators = 1;



반응형