MySQL This function has none of deterministic, NO SQL ... Cause analysis and resolution of error 1418 (GO)

Source: Internet
Author: User

Workaround:

There are two workarounds, the first one being declared as deterministic or no SQL with reads SQL data when creating subroutines (stored procedures, functions, triggers), for example: Create Definer = Current_User PROCEDURE ' Newproc ' () deterministic BEGIN #Routine body goes here ... END;;

The second is to trust the creator of the subroutine, prohibit the creation, modification of the subroutine when the requirements of Super permission, set the Log_bin_trust_routine_creators Global system variable to 1.

There are three ways to set up:

1. Execute set GLOBAL log_bin_trust_function_creators = 1 on the client;

2.MySQL start, plus--log-bin-trust-function-creators, parameter set to 1

3. add Log-bin-trust-function-creators=1 to the [mysqld] segment in MySQL configuration file My.ini or my.cnf

MySQL This function has none of deterministic, NO SQL ... Cause analysis and resolution of error 1418 (GO)

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.