-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

MariaDB Cookbook
By :

A deadlock is when there are two competing actions and both are waiting for the other to finish and so neither of them ever finish. The Aria storage engine is able to automatically detect and deal with deadlocks. To make effective use of this feature, we should configure it with the settings that work well for our needs.
Run the following command to show the current settings for Aria's two-step deadlock detection:
SHOW VARIABLES LIKE 'deadlock_%'\G
If our settings are set to the default values, the output of the previous command will be as shown in the following screenshot:
Change the variables to our desired values, as follows:
SET GLOBAL deadlock_search_depth_short = 3; SET GLOBAL deadlock_search_depth_long = 10; SET GLOBAL deadlock_timeout_long = 10000000; SET GLOBAL deadlock_timeout_short = 5000;
Make the changes permanent by adding the following lines of code to the bottom of our my.cnf
or my.ini
file (or to an existing ...
Change the font size
Change margin width
Change background colour