应用 MySQL 时,会遇到不能创建函数的情况。出现如下错误信息:

ERROR 1418 : 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函数功能:

    SET GLOBAL log_bin_trust_function_creators=1;

  关闭MySQL函数功能:

    SET GLOBAL log_bin_trust_function_creators=0;

  查看状态:

    show variables like '%func%';

原文地址:https://blog.csdn.net/pk490525/article/details/7309207

相关文章:

  • 2021-11-23
  • 2021-11-27
  • 2021-12-18
  • 2022-12-23
  • 2021-10-30
  • 2021-04-28
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-10-03
  • 2021-12-26
相关资源
相似解决方案