How to Create a function in mysql 1418

Source: Internet
Author: User


Solution for mysql 1418 failure to create functions: 1418 ThisfunctionhasnoneofDETERMINISTIC, NOSQL, routing (you * might * timeout) (0 mstaken) www.2cto.com solution: 1. mysql> set global log_bin_trust_function_creators = 1; 2. when the system is started -- log-bin-trust-function-creators = 1 3. in my. ini (my. in the [mysqld] File, add a line of content to log-bin-trust-function-
If creators has a 1418 error during create function: you only need to execute set global log_bin _
Trust_routine_creators = 1; then there will be no problem with how to create a function (of course, your function must be correct). This is a mysql bug,
I don't know why. It's okay to do this anyway. in addition, you can also directly in the configuration file my. in cnf, add the following line [mysqld] log_bin_trust_routine_creators = 1. This command can be run in the SQL editor environment without restarting the service.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.