Our database has a function to generate an order number. It reads a value from a Settings table, increments it, then returns the new value. For example:
CREA
I've googled and here I am. I've found a way :
SET GLOBAL log_bin_trust_function_creators = 1;
But be careful, it may be unsafe for data recovery or replication...