ホームページ  >  記事  >  データベース  >  mysql 创造fucntion或者procedure

mysql 创造fucntion或者procedure

WBOY
WBOYオリジナル
2016-06-07 16:23:321014ブラウズ

mysql 创建fucntion或者procedure 转载: http://www.2cto.com/database/201307/227471.html log_bin_trust_function_creators错误解决 当有mysql本地或远程建立function或procedure时报上面的错误 经试验是log_bin_trust_function_creators值为off导致 设置

mysql 创建fucntion或者procedure
转载:http://www.2cto.com/database/201307/227471.html

log_bin_trust_function_creators错误解决

当有mysql本地或远程建立function或procedure时报上面的错误
经试验是log_bin_trust_function_creators值为off导致

设置:

set global log_bin_trust_function_creators=1;



但重启后失效

永久解决方法

windows下my.ini[mysqld]加上log_bin_trust_function_creators=1

linux下/etc/my.cnf下my.ini[mysqld]加上log_bin_trust_function_creators=1



保存 ,重启服务器。
声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。