본문 바로가기

Backend/DB

[MYSQL] dump file import 시 ERROR 1418 (HY000) 해결 방법

오류

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)

 

해결방법

SET GLOBAL log_bin_trust_function_creators = 1;

 

예시

mysql 접속

SET GLOBAL log_bin_trust_function_creators = 1; 입력

 

후 dump file import start