When I am trying to Create a Function in MySql Query Browser, I had the below error and want to get rid of it.. and found a solution, as
ERROR 1418 (HY000) at line 253: 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)
for the above error just set the below parameters in my.ini (for windows) and my.cnf (in linux) files to edit and add the below text.
in windows to edit the my.ini file go here c:/program files/mysql/mysql version5.4/bin/my.ini
in linux to edit the my.cnf file go here /etc/mysql/bin/my.cnf and add the below line to your config file.
log_bin_trust_function_creators=1