I have MariaDB 10.6.5 server with several databases. I added a line innodb_print_all_deadlocks = 1 to config file. Now all deadlocks are logged to one file /var/log/mysql/mariadb.err Is there any way to split deadlocks to separate files for each database? I need to split the log file to make a report for programer on which DB was deadlock and which tables.
Maybe there is a tool that could help me generate a report on which database occur dedadlock and which tables
SHOW ENGINE INNODB STATUS;
) and we will help you get rid of that one. You may see a pattern that lets you fix most of the deadlocks.