Skip to content

Commit 069eb16

Browse files
committed
Merge branch '10.8' into 10.9
2 parents 2f959a6 + 8948034 commit 069eb16

File tree

8 files changed

+38
-34
lines changed

8 files changed

+38
-34
lines changed

debian/additions/debian-start

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ if [ -f /etc/default/mariadb ]; then
1717
. /etc/default/mariadb
1818
fi
1919

20-
MYSQL="/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf"
21-
MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
22-
# Don't run full mysql_upgrade on every server restart, use --version-check to do it only once
23-
MYUPGRADE="/usr/bin/mysql_upgrade --defaults-extra-file=/etc/mysql/debian.cnf --version-check --silent"
24-
MYCHECK="/usr/bin/mysqlcheck --defaults-file=/etc/mysql/debian.cnf"
25-
MYCHECK_SUBJECT="WARNING: mysqlcheck has found corrupt tables"
20+
MARIADB="/usr/bin/mariadb --defaults-file=/etc/mysql/debian.cnf"
21+
MYADMIN="/usr/bin/mariadb-admin --defaults-file=/etc/mysql/debian.cnf"
22+
# Don't run full mariadb-upgrade on every server restart, use --version-check to do it only once
23+
MYUPGRADE="/usr/bin/mariadb-upgrade --defaults-extra-file=/etc/mysql/debian.cnf --version-check --silent"
24+
MYCHECK="/usr/bin/mariadb-check --defaults-file=/etc/mysql/debian.cnf"
25+
MYCHECK_SUBJECT="WARNING: mariadb-check has found corrupt tables"
2626
MYCHECK_PARAMS="--all-databases --fast --silent"
2727
MYCHECK_RCPT="${MYCHECK_RCPT:-root}"
2828

debian/additions/debian-start.inc.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function check_for_crashed_tables() {
1111
set -u
1212

1313
# 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 and aria-recover for all Aria tables"
14+
logger -p daemon.info -i -t"$0" "Triggering myisam-recover for all MyISAM tables and aria-recover for all Aria tables"
1515

1616
# Checking for $? is unreliable so the size of the output is checked.
1717
# Some table handlers like HEAP do not support CHECK TABLE.
@@ -20,15 +20,15 @@ function check_for_crashed_tables() {
2020
# We have to use xargs in this case, because a for loop barfs on the
2121
# spaces in the thing to be looped over.
2222

23-
# If a crashed table is encountered, the "mysql" command will return with a status different from 0
23+
# If a crashed table is encountered, the "mariadb" command will return with a status different from 0
2424
set +e
2525

26-
LC_ALL=C $MYSQL --skip-column-names --batch -e '
26+
LC_ALL=C $MARIADB --skip-column-names --batch -e '
2727
select concat('\''select count(*) into @discard from `'\'',
2828
TABLE_SCHEMA, '\''`.`'\'', TABLE_NAME, '\''`'\'')
2929
from information_schema.TABLES where TABLE_SCHEMA<>'\''INFORMATION_SCHEMA'\'' and TABLE_SCHEMA<>'\''PERFORMANCE_SCHEMA'\'' and ( ENGINE='\''MyISAM'\'' or ENGINE='\''Aria'\'' )' | \
30-
xargs -i $MYSQL --skip-column-names --silent --batch \
31-
--force -e "{}" &>$tempfile
30+
xargs -i "${MARIADB}" --skip-column-names --silent --batch \
31+
--force -e "{}" &>"${tempfile}"
3232
set -e
3333

3434
if [ -s "$tempfile" ]; then
@@ -37,14 +37,14 @@ function check_for_crashed_tables() {
3737
"Improperly closed tables are also reported if clients are accessing\n" \
3838
"the tables *now*. A list of current connections is below.\n";
3939
$MYADMIN processlist status
40-
) >> $tempfile
40+
) >> "${tempfile}"
4141
# Check for presence as a dependency on mailx would require an MTA.
4242
if [ -x /usr/bin/mailx ]; then
43-
mailx -e -s"$MYCHECK_SUBJECT" $MYCHECK_RCPT < $tempfile
43+
mailx -e -s"$MYCHECK_SUBJECT" $MYCHECK_RCPT < "$tempfile"
4444
fi
45-
(echo "$MYCHECK_SUBJECT"; cat $tempfile) | logger -p daemon.warn -i -t$0
45+
(echo "$MYCHECK_SUBJECT"; cat "${tempfile}") | logger -p daemon.warn -i -t"$0"
4646
fi
47-
rm $tempfile
47+
rm "${tempfile}"
4848
}
4949

5050
## Check for tables needing an upgrade.
@@ -54,14 +54,14 @@ function upgrade_system_tables_if_necessary() {
5454
set -e
5555
set -u
5656

57-
logger -p daemon.info -i -t$0 "Upgrading MySQL tables if necessary."
57+
logger -p daemon.info -i -t"$0" "Upgrading MySQL tables if necessary."
5858

5959
# Filter all "duplicate column", "duplicate key" and "unknown column"
6060
# errors as the script is designed to be idempotent.
6161
LC_ALL=C $MYUPGRADE \
6262
2>&1 \
6363
| egrep -v '^(1|@had|ERROR (1051|1054|1060|1061|1146|1347|1348))' \
64-
| logger -p daemon.warn -i -t$0
64+
| logger -p daemon.warn -i -t"$0"
6565
}
6666

6767
## Check for the presence of both, root accounts with and without password.
@@ -70,10 +70,10 @@ function check_root_accounts() {
7070
set -e
7171
set -u
7272

73-
logger -p daemon.info -i -t$0 "Checking for insecure root accounts."
73+
logger -p daemon.info -i -t"$0" "Checking for insecure root accounts."
7474

75-
ret=$( echo "SELECT count(*) FROM mysql.user WHERE user='root' and password='' and plugin in ('', 'mysql_native_password', 'mysql_old_password');" | $MYSQL --skip-column-names )
75+
ret=$( echo "SELECT count(*) FROM mysql.user WHERE user='root' and password='' and plugin in ('', 'mysql_native_password', 'mysql_old_password');" | "$MARIADB" --skip-column-names )
7676
if [ "$ret" -ne "0" ]; then
77-
logger -p daemon.warn -i -t$0 "WARNING: mysql.user contains $ret root accounts without password!"
77+
logger -p daemon.warn -i -t"$0" "WARNING: mysql.user contains $ret root accounts without password!"
7878
fi
7979
}

debian/mariadb-server.postinst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set -o pipefail
1717

1818
case "$1" in
1919
configure)
20-
# This is needed because mysql_install_db removes the pid file in /run
20+
# This is needed because mariadb-install-db removes the pid file in /run
2121
# and because changed configuration options should take effect immediately.
2222
# In case the server wasn't running at all it should be ok if the stop
2323
# script fails. I can't tell at this point because of the cleaned /run.
@@ -162,12 +162,12 @@ EOF
162162

163163
# initiate databases. Output is not allowed by debconf :-(
164164
# This will fail if we are upgrading an existing database; in this case
165-
# mysql_upgrade, called from the /etc/init.d/mariadb start script, will
165+
# mariadb-upgrade, called from the /etc/mysql/debian-start script, will
166166
# handle things.
167167
# Debian: beware of the bashisms...
168168
# Debian: can safely run on upgrades with existing databases
169169
set +e
170-
bash /usr/bin/mysql_install_db --rpm --cross-bootstrap --user=mysql \
170+
bash /usr/bin/mariadb-install-db --rpm --cross-bootstrap --user=mysql \
171171
--disable-log-bin --skip-test-db 2>&1 | \
172172
$ERR_LOGGER
173173
set -e

mysql-test/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ https://mariadb.org/jira/.
9090
If the test case is really big or if it contains 'not public' data,
9191
then put your .test file and .result file(s) into a tar.gz archive,
9292
add a README that explains the problem, ftp the archive to
93-
ftp://ftp.askmonty.org/private and submit a report to
93+
ftp://ftp.mariadb.org/private and submit a report to
9494
https://mariadb.org/jira about it.
9595

9696
The latest information about mysql-test-run can be found at:

mysql-test/suite/encryption/r/innodb-redo-nokeys.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE faile
77
call mtr.add_suppression("InnoDB: Cannot apply log to \\[page id: space=[1-9][0-9]*, page number=0\\] of corrupted file '.*test.t[1-5]\\.ibd'");
88
call mtr.add_suppression("InnoDB: Failed to read page .* from file '.*'");
99
call mtr.add_suppression("InnoDB: OPT_PAGE_CHECKSUM mismatch");
10+
call mtr.add_suppression("InnoDB: Missing FILE_CHECKPOINT");
11+
call mtr.add_suppression("InnoDB: Log scan aborted at LSN");
1012
call mtr.add_suppression("InnoDB: Set innodb_force_recovery=1 to ignore corruption");
1113
# restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys2.txt
1214
SET GLOBAL innodb_file_per_table = ON;

mysql-test/suite/encryption/t/innodb-redo-nokeys.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE faile
1212
call mtr.add_suppression("InnoDB: Cannot apply log to \\[page id: space=[1-9][0-9]*, page number=0\\] of corrupted file '.*test.t[1-5]\\.ibd'");
1313
call mtr.add_suppression("InnoDB: Failed to read page .* from file '.*'");
1414
call mtr.add_suppression("InnoDB: OPT_PAGE_CHECKSUM mismatch");
15+
call mtr.add_suppression("InnoDB: Missing FILE_CHECKPOINT");
16+
call mtr.add_suppression("InnoDB: Log scan aborted at LSN");
1517
call mtr.add_suppression("InnoDB: Set innodb_force_recovery=1 to ignore corruption");
1618

1719
-- let $restart_parameters=--file-key-management-filename=$MYSQL_TEST_DIR/std_data/keys2.txt

scripts/mysql_install_db.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -612,17 +612,17 @@ else
612612
echo
613613
echo " shell> $0 --defaults-file=~/.my.cnf"
614614
echo
615-
echo "You can also try to start the mysqld daemon with:"
615+
echo "You can also try to start the mariadbd daemon with:"
616616
echo
617617
echo " shell> $mysqld --skip-grant-tables --general-log &"
618618
echo
619619
echo "and use the command line tool $bindir/mariadb"
620620
echo "to connect to the mysql database and look at the grant tables:"
621621
echo
622-
echo " shell> $bindir/mysql -u root mysql"
623-
echo " mysql> show tables;"
622+
echo " shell> $bindir/mariadb -u root mysql"
623+
echo " MariaDB> show tables;"
624624
echo
625-
echo "Try 'mysqld --help' if you have problems with paths. Using"
625+
echo "Try '$mysqld --help' if you have problems with paths. Using"
626626
echo "--general-log gives you a log in $ldata that may be helpful."
627627
link_to_help
628628
echo "You can find the latest source at https://downloads.mariadb.org and"
@@ -640,8 +640,8 @@ fi
640640
if test "$cross_bootstrap" -eq 0 && test -z "$srcdir"
641641
then
642642
s_echo
643-
s_echo "To start mysqld at boot time you have to copy"
644-
s_echo "support-files/mysql.server to the right place for your system"
643+
s_echo "To start mariadbd at boot time you have to copy"
644+
s_echo "support-files/mariadb.service to the right place for your system"
645645

646646
if test "$auth_root_authentication_method" = normal
647647
then
@@ -650,7 +650,7 @@ then
650650
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !"
651651
echo "To do so, start the server, then issue the following command:"
652652
echo
653-
echo "'$bindir/mysql_secure_installation'"
653+
echo "'$bindir/mariadb-secure-installation'"
654654
echo
655655
echo "which will also give you the option of removing the test"
656656
echo "databases and anonymous user created by default. This is"
@@ -674,10 +674,10 @@ then
674674
then
675675
echo
676676
echo "You can start the MariaDB daemon with:"
677-
echo "cd '$basedir' ; $bindir/mysqld_safe --datadir='$ldata'"
677+
echo "cd '$basedir' ; $bindir/mariadb-safe --datadir='$ldata'"
678678
echo
679679
echo "You can test the MariaDB daemon with mysql-test-run.pl"
680-
echo "cd '$basedir/mysql-test' ; perl mysql-test-run.pl"
680+
echo "cd '$basedir/@INSTALL_MYSQLTESTDIR@' ; perl mariadb-test-run.pl"
681681
fi
682682

683683
echo

support-files/rpm/server-postin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if [ $1 = 1 ] ; then
5858
mkdir -p $datadir
5959

6060
# Initiate databases
61-
%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
61+
%{_bindir}/mariadb-install-db --rpm --user=%{mysqld_user}
6262
fi
6363

6464
# Change permissions again to fix any new files.

0 commit comments

Comments
 (0)