Skip to content

Commit a297f24

Browse files
authored
Merge pull request #3 from andrzejenne/master
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)
2 parents bc49215 + 5a52ad7 commit a297f24

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ services:
7878
platform: linux/amd64
7979
volumes:
8080
- mysql:/var/lib/mysql
81+
- ./images/mysql/custom.my.cnf:/etc/mysql/conf.d/custom.my.cnf
8182

8283
adminer:
8384
build:

images/mysql/custom.my.cnf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[mysqld]
2+
# solves General error: 1419
3+
log_bin_trust_function_creators = 1

0 commit comments

Comments
 (0)