Skip to content

Commit 5acc79d

Browse files
committed
Remove --upgrade-info option from mysql_upgrade
Removed the option as it safe to always create the file when we have created the MariaDB data directories. This fixes this issue not only for debian but for all MariaDB users.
1 parent 93a5fb0 commit 5acc79d

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

debian/mariadb-server-10.2.postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ EOF
144144
# Debian: beware of the bashisms...
145145
# Debian: can safely run on upgrades with existing databases
146146
set +e
147-
bash /usr/bin/mysql_install_db --rpm --cross-bootstrap --user=mysql --disable-log-bin --upgrade-info 2>&1 | $ERR_LOGGER
147+
bash /usr/bin/mysql_install_db --rpm --cross-bootstrap --user=mysql --disable-log-bin 2>&1 | $ERR_LOGGER
148148
set -e
149149

150150
## On every reconfiguration the maintenance user is recreated.

man/mysql_install_db.1

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -276,21 +276,6 @@ This must be given as the first argument\&.
276276
.sp -1
277277
.IP \(bu 2.3
278278
.\}
279-
.\" mysql_install_db: upgrade-info option
280-
.\" upgrade-info option: mysql_install_db
281-
\fB\-\-upgrade\-info\fR
282-
.sp
283-
This places a mysql_upgrade_info file containing the server version in the data directory\&.
284-
.RE
285-
.sp
286-
.RS 4
287-
.ie n \{\
288-
\h'-04'\(bu\h'+03'\c
289-
.\}
290-
.el \{\
291-
.sp -1
292-
.IP \(bu 2.3
293-
.\}
294279
.\" mysql_install_db: rpm option
295280
.\" rpm option: mysql_install_db
296281
\fB\-\-rpm\fR

scripts/mysql_install_db.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ create database if not exists test;
4242
use mysql;"
4343
auth_root_authentication_method=normal
4444
auth_root_socket_user='root'
45-
upgrade_info=0
4645

4746
dirname0=`dirname $0 2>/dev/null`
4847
dirname0=`dirname $dirname0 2>/dev/null`
@@ -104,7 +103,6 @@ Usage: $0 [OPTIONS]
104103
group. You must be root to use this option. By default
105104
mysqld runs using your current group and files and
106105
directories that it creates will be owned by you.
107-
--upgrade-info Store mysql_upgrade_info in the installed data directory.
108106
109107
All other options are passed to the mysqld program
110108
@@ -160,7 +158,6 @@ parse_arguments()
160158
--skip-name-resolve) ip_only=1 ;;
161159
--verbose) verbose=1 ; silent_startup="" ;;
162160
--rpm) in_rpm=1 ;;
163-
--upgrade-info) upgrade_info=1 ;;
164161
--help) usage ;;
165162
--no-defaults|--defaults-file=*|--defaults-extra-file=*)
166163
defaults="$arg" ;;
@@ -528,10 +525,7 @@ SET @auth_root_socket='$auth_root_socket_user';" ;;
528525
esac
529526
if { echo "$install_params"; cat "$create_system_tables" "$create_system_tables2" "$fill_system_tables" "$fill_help_tables" "$maria_add_gis_sp"; } | eval "$filter_cmd_line" | mysqld_install_cmd_line > /dev/null
530527
then
531-
if test "$upgrade_info" -eq 1
532-
then
533528
printf "@VERSION@-MariaDB" > "$ldata/mysql_upgrade_info"
534-
fi
535529
s_echo "OK"
536530
else
537531
echo

0 commit comments

Comments
 (0)