MySql Creating Function Error. (Workaround Solution)

14 Aug

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.

Leave a comment

Posted by on August 14, 2009 in MySql



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: