You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default file name changed to "/etc/default/mysql" ; The MYCHECK_RCPT variable can now be set from the default file ; The check_for_crashed_tables() function on the debian-start script has been fixed and now also checks Aria tables
Copy file name to clipboardexpand all lines: debian/additions/debian-start.inc.sh
+5-5
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,15 @@
3
3
# This file is included by /etc/mysql/debian-start
4
4
#
5
5
6
-
## Check all unclosed tables.
6
+
## Check MyISAM and Aria unclosed tables.
7
7
# - Requires the server to be up.
8
8
# - Is supposed to run silently in background.
9
9
functioncheck_for_crashed_tables() {
10
10
set -e
11
11
set -u
12
12
13
13
# But do it in the background to not stall the boot process.
14
-
logger -p daemon.info -i -t$0"Triggering myisam-recover for all MyISAM tables"
14
+
logger -p daemon.info -i -t$0"Triggering myisam-recover for all MyISAM tables and aria-recover for all Aria tables"
15
15
16
16
# Checking for $? is unreliable so the size of the output is checked.
17
17
# Some table handlers like HEAP do not support CHECK TABLE.
@@ -21,10 +21,10 @@ function check_for_crashed_tables() {
21
21
LC_ALL=C $MYSQL --skip-column-names --batch -e '
22
22
select concat('\''select count(*) into @discard from `'\'',
23
23
TABLE_SCHEMA, '\''`.`'\'', TABLE_NAME, '\''`'\'')
24
-
from information_schema.TABLES where ENGINE='\''MyISAM'\'| \
24
+
from information_schema.TABLES where TABLE_SCHEMA<>'\''INFORMATION_SCHEMA'\'' and TABLE_SCHEMA<>'\''PERFORMANCE_SCHEMA'\'' and ( ENGINE='\''MyISAM'\'' or ENGINE='\''Aria'\'' )'| \
Copy file name to clipboardexpand all lines: debian/mariadb-server-10.0.mysql.default
+4
Original file line number
Diff line number
Diff line change
@@ -2,3 +2,7 @@
2
2
# If the server is still not responding after the delay, the script won't be executed and an error will be thrown on the syslog.
3
3
# Default: 30
4
4
#MYSQLD_STARTUP_TIMEOUT=30
5
+
6
+
# The email recipient(s) of the output of the check for crashed and improperly closed MyISAM and Aria tables done at each server start by the "/etc/mysql/debian-start" script.
0 commit comments