mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fixed some errors & warnings when running mariadb-upgrade on MySQL instance
- Moved view checks after privilege tables are fixed. This is to avoid warnings about wrongly defined mysql.proc when checking views. - Don't use stat tables before they have been fixed. - Don't run mysql_fix_view() if 'FOR MYSQL' is used if the view is already a MariaDB view. - Added 'FOR UPGRADE' as an option for 'REPAIR VIEW' to be able to detect if the REPAIR command comes from mariadb_upgrade. In this case we get a warning, instead of an error, if a definer of a view does not exists.
This commit is contained in:
@ -34,7 +34,7 @@ select table_catalog, table_schema, table_name, table_type, engine, row_format,
|
||||
|
||||
--echo # upgrade from 10.1 - engines aren't enabled
|
||||
--replace_regex /\d\d\.\d*\.\d*[^ .\n]*/MariaDB /
|
||||
exec $MYSQL_UPGRADE 2>&1;
|
||||
exec $MYSQL_UPGRADE --silent 2>&1;
|
||||
select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t1';
|
||||
select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t2';
|
||||
|
||||
@ -54,7 +54,7 @@ EOF
|
||||
|
||||
--echo # still upgrade from 10.1
|
||||
--replace_regex /\d\d\.\d*\.\d*[^ .\n]*/MariaDB /
|
||||
exec $MYSQL_UPGRADE 2>&1;
|
||||
exec $MYSQL_UPGRADE --silent 2>&1;
|
||||
select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t1';
|
||||
select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t2';
|
||||
|
||||
@ -68,13 +68,14 @@ remove_file $datadir/mysql_upgrade_info;
|
||||
|
||||
--echo # upgrade from 10.0 - engines are enabled
|
||||
--replace_regex /\d\d\.\d*\.\d*[^ .\n]*/MariaDB /
|
||||
exec $MYSQL_UPGRADE 2>&1;
|
||||
exec $MYSQL_UPGRADE --silent 2>&1;
|
||||
select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t1';
|
||||
select table_catalog, table_schema, table_name, table_type, engine, row_format, table_rows, data_length, table_comment from information_schema.tables where table_schema='test' and table_name='t2';
|
||||
|
||||
drop table t1, t2;
|
||||
|
||||
remove_file $datadir/mysql_upgrade_info;
|
||||
# This is needed as mysql_upgrade can load the plugins
|
||||
uninstall plugin blackhole;
|
||||
uninstall plugin archive;
|
||||
|
||||
|
Reference in New Issue
Block a user