Skip to content

Commit

Permalink
Merge pull request #3 from andrzejenne/master
Browse files Browse the repository at this point in the history
Fix for MySQL general error 1419

In Mysql.php line 110:
                                                                               
  SQLSTATE[HY000]: General error: 1419 You do not have the SUPER privilege an  
  d binary logging is enabled (you *might* want to use the less safe log_bin_  
  trust_function_creators variable), query was: CREATE TRIGGER update_visit_s  
  tat AFTER INSERT ON amasty_faq_view_stat FOR EACH ROW                        
  BEGIN                                                                        
  UPDATE amasty_faq_category SET visit_count = visit_count + 1 WHERE category  
  _id = NEW.category_id;UPDATE amasty_faq_question SET visit_count = visit_co  
  unt + 1 WHERE question_id = NEW.question_id;                                 
  END                                                                          
                                                                               

In Mysql.php line 91:
                                                                               
  SQLSTATE[HY000]: General error: 1419 You do not have the SUPER privilege an  
  d binary logging is enabled (you *might* want to use the less safe log_bin_  
  trust_function_creators variable)
  • Loading branch information
ironexdev authored Feb 14, 2022
2 parents bc49215 + 5a52ad7 commit a297f24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ services:
platform: linux/amd64
volumes:
- mysql:/var/lib/mysql
- ./images/mysql/custom.my.cnf:/etc/mysql/conf.d/custom.my.cnf

adminer:
build:
Expand Down
3 changes: 3 additions & 0 deletions images/mysql/custom.my.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[mysqld]
# solves General error: 1419
log_bin_trust_function_creators = 1

0 comments on commit a297f24

Please sign in to comment.