博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

查看创建函数的功能是否开启:

Posted on 2016-08-08 15:35  moss_tan_jun  阅读(255)  评论(0编辑  收藏  举报

先看下,log_bin_trust_function_creators有没有开启
mysql>  show variables like '%func%';
+---------------------------------+-------+
| Variable_name                   | Value |
+---------------------------------+-------+
| log_bin_trust_function_creators | OFF   |
+---------------------------------+-------+
1 row in set (0.00 sec)


如果Value处值为OFF,则需将其开启。
mysql> set global log_bin_trust_function_creators=1;
Query OK, 0 rows affected (0.00 sec)


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