`
haiqiang
  • 浏览: 1327 次
文章分类
社区版块
存档分类
最新评论

MySQL函数不能创建

 
阅读更多

首先需要用root用户登录mysql数据库

然后执行

show variables like '%function%';

mysql> show variables like '%function%';
+---------------------------------+-------+
| Variable_name                   | Value |
+---------------------------------+-------+
| log_bin_trust_function_creators | OFF   |
+---------------------------------+-------+
1 row in set

mysql> set global log_bin_trust_function_creators=1;
Query OK, 0 rows affected

mysql>

 

mysql> show variables like '%function%';
+---------------------------------+-------+
| Variable_name                   | Value |
+---------------------------------+-------+
| log_bin_trust_function_creators | ON    |
+---------------------------------+-------+
1 row in set

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics