思路话语

。Arlen:思想有多远你就能走多远...

mysql创建函数失败的解决方案

ERROR 1418 (HY000): 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)
mysql> ;
    -> Aborted
Tencent64:~ # mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 18001
Server version: 5.1.34-log MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show variables like 'log_bin_trust_function_creators\';
    '> ';
Empty set (0.00 sec)

mysql> show variables like 'log_bin_trust_function_creators' 
    -> ;
+---------------------------------+-------+
| Variable_name                   | Value |
+---------------------------------+-------+
| log_bin_trust_function_creators | OFF   |
+---------------------------------+-------+
1 row in set (0.00 sec)

mysql> set global log_bin_trust_function_creators=1;
Query OK, 0 rows affected (0.00 sec)

posted on 2009-10-21 15:45  Arlen  阅读(195)  评论(0编辑  收藏  举报

导航