λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°

λͺ©λ‘μ΄ μ—†μŠ΅λ‹ˆλ‹€.

[MySQL] ν•¨μˆ˜ 생성 μ‹œ μ—λŸ¬ λ°œμƒ 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)

πŸ›’ DB
    λ°˜μ‘ν˜•

     

     

    상황

    ν•¨μˆ˜λ₯Ό μƒμ„±ν•˜λ €κ³  ν–ˆμœΌλ‚˜ μ•„λž˜μ™€ 같은 μ—λŸ¬λ©”μ‹œμ§€κ°€ λ°œμƒν•¨.

    μ—λŸ¬λ©”μ‹œμ§€
    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)

     

    ν•΄κ²°

    DB의 root둜 μ ‘μ†ν•˜μ—¬ μ•„λž˜ 쿼리λ₯Ό μˆ˜ν–‰ν•΄μ£Όκ³  μž¬μƒμ„±

    SET GLOBAL log_bin_trust_function_creators = 1;

     

     

    λ°˜μ‘ν˜•