mysql创建函数出现1418错误的解决办法
2013-06-29 00:00
603 查看
Error Code : 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) (0 ms taken)
分析:
根据系统提示,导致该错误的原因可能是一个安全设置方面的配置,查手册log_bin_trust_function_creators参数缺省0,是不允许function的同步的,一般我们在配置repliaction的时候,都忘记关注这个参数,这样在master更新funtion后,slave就会报告错误,然后slave stoped。
处理过程:
登陆mysql数据库
> set global log_bin_trust_function_creators = 1;
> start slave;
跟踪mysql的启动日志,slave正常运行,问题解决。
相关文章推荐
- mysql 创建函数时出现 Error Code : 1418 错误解决办法
- mysql创建函数出现1418错误的解决办法
- mysql 创建函数时出现 Error Code : 1418 错误解决办法
- 一台机器搭建MySQL双实例并创建主从关系出现1045错误解决办法一则
- 一台机器搭建MySQL双实例并创建主从关系出现1045错误解决办法一则
- MySQL创建Function时报的1418错误代号解决办法
- MySQL创建Function时报的1418错误代号解决办法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- 关于mysql 出现 1264 Out of range value for column 错误的解决办法
- 彻底解决phpcms v9升级后,文章发布出现: Mysql 1267错误:MySQL Error : Illegal mix of collations 解决办法
- mysql4中出现的本地计算机 无法启动mysql服务 错误1067解决办法
- MySQL创建外键时出现error121解决办法
- WIN10安装MySQL出现错误2503 2502 的解决办法!
- mysql 创建视图出现1349 View's SELECT contains a subquery in the FROM clause解决办法
- wdcp 远程连接mysql 出现1130错误 解决办法
- 从 IClassFactory 为 CLSID 为 {00024500-0000-0000-C000-000000000046} 的 COM 组件创建实例失败,原因是出现以下错误: 8001010a解决办法
- python用open()函数打开.py等文档时出现编码错误解决办法
- centos 安装 mysql出现conflicts with file from package错误的解决办法
- 安装SQL Server出现在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke的错误解决办法