标签:class blog http tar ext color
I experienced this error while trying to alter one of my stored procedures remotely on a master server. After some research, I ended up getting information from “Binary Logging of Stored Programs“.
From MySQL Reference in verbatim:
When you create a stored function, you must declare either that it is deterministic or that it does not modify data. Otherwise, it may be unsafe for data recovery or replication.
By default, for a CREATE FUNCTION statement to be accepted, at least one of DETERMINISTIC, NO SQL, or READS SQL DATA must be specified explicitly. Otherwise an error occurs:
Further reading helped me arrive to the conclusion to the cause of this error:
We can choose solutions listed below depending to our system requirements, for me, I opted on using the later.
You can also set this variable by using the –log-bin-trust-function-creators=1 option when starting the server.
POSTED ON SUNDAY, NOVEMBER 11TH, 2012 AT 11:54 PM PRINT THIS ARTICLE EMAIL THIS ARTICLE
mysql 报错之创建自定义函数,布布扣,bubuko.com
标签:class blog http tar ext color
原文地址:http://www.cnblogs.com/best-jobs/p/3806292.html