I am trying to create a function on Azure Database for MariaDB like below:

RETURN CONCAT('Hello, ',s,'!');

but I am getting the error below:

Error SQL (1419): You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)

Azure Database for MySql raises the same error, but we have, on Azure Portal, an option variable "log_bin_trust_function_creators" available to change to active and pass it. MariaDB don't have it available on Azure Portal.

Is there any other solution to enable function creation in Azure Database for MariaDB?

Or is there other way to change "log_bin_trust_function_creators" variable for Azure MariaDB? I tried "SET GLOBAL log_bin_trust_function_creators:=1" but raised:

Erro SQL (1227): Access denied; you need (at least one of) the SUPER privilege(s) for this operation
  • I don't understand part of your post. Do you mean that log_bin_trust_function_creators is present in the Azure Portal and that you cannot change it, or that it is not present? – Michael Hampton Jan 10 at 21:21
  • This needs moving to dba.stackexchange.com, where it might more traction. – Rick James Jan 10 at 23:21
  • On Azure Database for MariaDB, log_bin_trust_function_creators exists on database but I can't change it. On Azure Database for MySql I can change it because it is available on Portal configuration. – Marco Segundo Mezzena Jan 11 at 14:10
  • Could I move this question to dba.stackexchange.com or I have to create new question there? – Marco Segundo Mezzena Jan 11 at 14:16

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.