MySQL 8 restore DB dump

Seit MySQL 8, bei mir in Xubuntu 19.10, gibt es eine Fehlermeldung beim Importieren von Datenbanken:

mysql -u root -p db_name < /path/to/db_dump.sql
Enter password: 
ERROR 1418 (HY000) at line 571: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)

…der Datenbank Import war unvollständig.

Beheben kann man das mit folgendem befehl in der MySQL Konsole:

SET GLOBAL log_bin_trust_function_creators = 1;

…oder diesen Wert in der my.cnf anpassen.