DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled

后端 未结 6 1342
抹茶落季
抹茶落季 2020-12-04 07:24

While importing the database in mysql, I have got following error:

1418 (HY000) at line 10185: This function has none of DETERMINISTIC, NO SQL, or READS SQL DA

6条回答
  •  生来不讨喜
    2020-12-04 07:31

    following Donald's comment:

    This variable applies when binary logging is enabled.

    All I had to do was:

    1. disabled log_bin in my.cnf (#log_bin)
    2. restart mysql
    3. import DB
    4. enable log_bin
    5. restart mysql

    That step out that import problem.

    (Then I'll review the programmer's code to suggest an improvement)

提交回复
热议问题