mariadb/scripts
Lorna Luo acfb5dfd97 MDEV-22683: Ensure system tables are correctly upgraded in MariaDB 10.4
Running mysql_upgrade should end up with the exact same system tables as fresh
installations have after running mysql_install_db. To ensure the upgrade is
correct and complete:

- Remove the redundant modification of thread_id`. On 5.5 version, the
  `general_log` table was created as `CREATE TABLE IF NOT EXISTS general_log
  (..., thread_id INTEGER NOT NULL, ...)`, and starting from 10.0+, the table is
  created as `CREATE TABLE IF NOT EXISTS general_log (..., thread_id BIGINT(21)
  UNSIGNED NOT NULL, ...)`, but mysql_upgrade is not properly upgrading the
  table. It modifies the `thread_id` twice in one query, which could leave the
  table not modified and lead to other potential error when upgrading from
  MariaDB 5.5 or older.

- Update `servers` to ensure `Host` and `User` has correct data type if
  upgrading from 10.1 or older. On versions 10.0 and 10.1, the `servers` table
  was created as `CREATE TABLE IF NOT EXISTS servers (..., Host char(64) NOT
  NULL DEFAULT , ..., Owner char(64) NOT NULL DEFAULT , ...)`, and starting
  from 10.2, the table is created as `CREATE TABLE IF NOT EXISTS servers (...,
  Host varchar(2048) NOT NULL DEFAULT , ..., Owner varchar(512) NOT NULL
  DEFAULT , ...)`.

All new code of the whole pull request, including one or several files that
are either new files or modified ones, are contributed under the BSD-new license.
I am contributing on behalf of my employer Amazon Web Services, Inc.
2023-03-02 09:06:35 +11:00
..
CMakeLists.txt Merge 10.3 into 10.4 2022-03-29 11:13:18 +03:00
comp_sql.c Merge 10.3 into 10.4 2022-07-01 13:10:36 +03:00
convert-debug-for-diff.sh MDEV-23697: bin/env perl -i -> bin/perl -i 2020-10-02 05:28:58 +02:00
dheadgen.pl BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
fill_help_tables.sql Update 10.4 HELP tables 2023-01-24 09:52:11 +11:00
galera_new_cluster.sh MDEV-19161: Let galera_new_cluster use "restart" instead of "start" 2022-05-12 07:46:26 +03:00
galera_recovery.sh MDEV-21140 Make galera_recovery.sh work with fs.protected_regular = 1 (#1417) 2020-04-05 18:40:27 +03:00
maria_add_gis_sp.sql.in MDEV-19650: Privilege bug on MariaDB 10.4 2020-05-07 10:54:56 +02:00
mariadb-service-convert MDEV-30329: mariadb-service-convert resets systemd service to default User=root 2023-01-03 11:45:24 +11:00
msql2mysql.sh Update FSF Address 2019-05-11 21:29:06 +03:00
mysql_config.pl.in Merge 10.3 into 10.4 2020-10-29 13:38:38 +02:00
mysql_config.sh Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
mysql_convert_table_format.sh Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_find_rows.sh Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_fix_extensions.sh Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_install_db.sh Merge 10.3 into 10.4 2022-12-14 06:20:04 +02:00
mysql_performance_tables.sql MDEV-4262 - P_S discovery 2014-08-19 15:18:18 +04:00
mysql_secure_installation.sh MDEV-19516 mysql_secure_installation doesn't set password_last_changed while setting password for root 2019-10-30 15:24:00 +01:00
mysql_setpermission.sh Remove FLUSH PRIVILEGES from mysql_setpermission 2021-08-25 18:37:36 +10:00
mysql_system_tables.sql Fixed that mysql_upgrade doesn't give errors about mariadb.sys 2022-04-04 16:14:22 +03:00
mysql_system_tables_data.sql Merge branch '10.3' into 10.4 2019-12-09 15:09:41 +01:00
mysql_system_tables_fix.sql MDEV-22683: Ensure system tables are correctly upgraded in MariaDB 10.4 2023-03-02 09:06:35 +11:00
mysql_test_data_timezone.sql Update FSF Address 2019-05-11 21:29:06 +03:00
mysql_test_db.sql Updated mtr files to support different compiled in options 2019-09-01 19:17:35 +03:00
mysqlaccess.conf BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
mysqlaccess.sh fix typos 2023-01-12 14:02:20 +11:00
mysqld_multi.sh MDEV-27477 Remaining SUSE patches for 10.2+ 2022-01-27 16:37:58 +02:00
mysqld_safe.sh Merge 10.3 into 10.4 2022-03-07 09:05:36 +02:00
mysqldumpslow.sh Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysqlhotcopy.sh MDEV-21317 mysqlhotcopy and transaction_registry table 2020-02-02 15:13:29 +03:00
mytop.sh MDEV-23697: perl -w -> perl 2020-09-24 08:09:56 +10:00
wsrep_sst_backup.sh MDEV-28758: Mariabackup copies binary logs to backup directory 2022-08-01 15:53:14 +02:00
wsrep_sst_common.sh MDEV-30220: rsync SST completely ignores aria-log-dir-path 2023-01-11 15:01:00 +01:00
wsrep_sst_mariabackup.sh MDEV-30220: rsync SST completely ignores aria-log-dir-path 2023-01-11 15:01:00 +01:00
wsrep_sst_mysqldump.sh MDEV-28583: Galera: binlogs disappear after rsync IST 2022-05-18 01:22:29 +02:00
wsrep_sst_rsync.sh MDEV-30220: rsync SST completely ignores aria-log-dir-path 2023-01-11 15:01:00 +01:00