MySQL Error 1418

December 23, 2015 by Linux Guru

Filed under Database, logs, MySQL

Last modified June 15, 2016

MySQL Error 1418

ERROR 1418 (HY000) at line 5: 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)

Solution:

# mysql -u root -p
MySQL> SET GLOBAL log_bin_trust_function_creators = ON;

OR

MySQL> # SET GLOBAL log_bin_trust_function_creators = 1;

Reason: ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you  want to use the less safe log_bin_trust_function_creators variable)

Leave a Comment