...
If you do not update the log_bin_trust_function_creators setting in my.cnf, you will need to must make sure that your session either has this setting updated, or that you run migration scripts with sufficient privileges. Full details for doing this are given in Standard Upgrade Instructions.
...