Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
Unable to create Triggers in Azure Mysql DB

I have a MySQL Database running in azure. I have been trying to create some very basic trigger which I have tested on a local instance of MySQL which worked like they where supposed to do.

However, It doesn't seem like an option to create triggers in Azure's MySQL database.

> CREATE TRIGGER update_last_modified_xxx
-> BEFORE UPDATE ON xxx
->     FOR EACH ROW
-> BEGIN
->     SET new.last_modified = NOW();
-> END;
->


(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)') (edited) 

And changing log_bin_trust_function_creators is not possible due to the limitations set by MS. Am I missing something here or should it be possible to create triggers in a MySQL DB running in azure?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I've simply set the log_bin_trust_function_creators parameter 'ON' by hand from 'Server Parameters' tab in the Azure Portal and solved the issue.

over 4 years ago · Santiago Trujillo Report

0

From Online migration issues & limitations to Azure DB for MySQL with Azure Database Migration Service

Schema in target Azure Database for MySQL must not have any triggers.

So I don't think the Azure service allows triggers.

over 4 years ago · Santiago Trujillo Report

0

In Azure Database for MySQL, binary logs are always enabled (i.e. log_bin is set to ON). In case you want to use triggers you will get error similar to 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).

The binary logging format is always ROW and all connections to the server ALWAYS use row-based binary logging. With row-based binary logging, security issues do not exist and binary logging cannot break, so you can safely set log_bin_trust_function_creators to TRUE.

Ref: https://docs.microsoft.com/en-us/azure/mysql/concepts-server-parameters#log_bin_trust_function_creators

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!