zoukankan      html  css  js  c++  java
  • MYSQL 创建常见问题

    1、创建函数时,报错:

    出错信息:
    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服务器中开启了二进制日志选项log-bin,slave会从master复制数据,而一些操作,比如function所得的结果在master和slave上可能不同,所以存在潜在的安全隐患。因此,在默认情况下回阻止function的创建。

    解决办法:执行  set global log_bin_trust_function_creators=TRUE;

    在命令模式下 查看:show slave statusG; 是否主从不同步

  • 相关阅读:
    3-2
    3-1
    2-11
    2-10
    2-7
    2-9
    springboot 使用undertow代替tomcat容器提高吞吐量
    springboot—JVM性能参数调优
    springbootDay3
    springboot_Mybaits_PageHelper
  • 原文地址:https://www.cnblogs.com/milanmi/p/8227661.html
Copyright © 2011-2022 走看看