mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
If one uses 3 --verbose options to mysql_upgrade or mysqlcheck one will now get on stdout all ALTER, RENAME and CHECK commands that mysqlcheck executes.
If one uses 4 --verbose to mysql_upgrade it will also write out all mysqlcheck commands invoked. mysql-test/r/mysql_upgrade.result: Updated results from changing phases mysql-test/r/mysql_upgrade_no_innodb.result: dated results from changing phases mysql-test/r/mysql_upgrade_ssl.result: dated results from changing phases
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
Run mysql_upgrade once
|
||||
Phase 1/3: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 1/4: Checking mysql database
|
||||
Processing databases
|
||||
mysql
|
||||
mysql.column_stats OK
|
||||
@ -30,8 +30,9 @@ mysql.time_zone_name OK
|
||||
mysql.time_zone_transition OK
|
||||
mysql.time_zone_transition_type OK
|
||||
mysql.user OK
|
||||
Phase 2/3: Fixing table and database names
|
||||
Phase 3/3: Checking and upgrading tables
|
||||
Phase 2/4: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 3/4: Fixing table and database names
|
||||
Phase 4/4: Checking and upgrading tables
|
||||
Processing databases
|
||||
information_schema
|
||||
mtr
|
||||
@ -43,7 +44,7 @@ OK
|
||||
Run it again - should say already completed
|
||||
This installation of MySQL is already upgraded to VERSION, use --force if you still need to run mysql_upgrade
|
||||
Force should run it regardless of wether it's been run before
|
||||
Phase 1/3: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 1/4: Checking mysql database
|
||||
Processing databases
|
||||
mysql
|
||||
mysql.column_stats OK
|
||||
@ -74,8 +75,9 @@ mysql.time_zone_name OK
|
||||
mysql.time_zone_transition OK
|
||||
mysql.time_zone_transition_type OK
|
||||
mysql.user OK
|
||||
Phase 2/3: Fixing table and database names
|
||||
Phase 3/3: Checking and upgrading tables
|
||||
Phase 2/4: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 3/4: Fixing table and database names
|
||||
Phase 4/4: Checking and upgrading tables
|
||||
Processing databases
|
||||
information_schema
|
||||
mtr
|
||||
@ -87,7 +89,7 @@ OK
|
||||
CREATE USER mysqltest1@'%' IDENTIFIED by 'sakila';
|
||||
GRANT ALL ON *.* TO mysqltest1@'%';
|
||||
Run mysql_upgrade with password protected account
|
||||
Phase 1/3: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 1/4: Checking mysql database
|
||||
Processing databases
|
||||
mysql
|
||||
mysql.column_stats OK
|
||||
@ -118,8 +120,9 @@ mysql.time_zone_name OK
|
||||
mysql.time_zone_transition OK
|
||||
mysql.time_zone_transition_type OK
|
||||
mysql.user OK
|
||||
Phase 2/3: Fixing table and database names
|
||||
Phase 3/3: Checking and upgrading tables
|
||||
Phase 2/4: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 3/4: Fixing table and database names
|
||||
Phase 4/4: Checking and upgrading tables
|
||||
Processing databases
|
||||
information_schema
|
||||
mtr
|
||||
@ -136,7 +139,7 @@ Run mysql_upgrade with a non existing server socket
|
||||
mysqlcheck: Got error: 2005: Unknown MySQL server host 'not_existing_host' (errno) when trying to connect
|
||||
FATAL ERROR: Upgrade failed
|
||||
set GLOBAL sql_mode='STRICT_ALL_TABLES,ANSI_QUOTES,NO_ZERO_DATE';
|
||||
Phase 1/3: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 1/4: Checking mysql database
|
||||
Processing databases
|
||||
mysql
|
||||
mysql.column_stats OK
|
||||
@ -167,8 +170,9 @@ mysql.time_zone_name OK
|
||||
mysql.time_zone_transition OK
|
||||
mysql.time_zone_transition_type OK
|
||||
mysql.user OK
|
||||
Phase 2/3: Fixing table and database names
|
||||
Phase 3/3: Checking and upgrading tables
|
||||
Phase 2/4: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 3/4: Fixing table and database names
|
||||
Phase 4/4: Checking and upgrading tables
|
||||
Processing databases
|
||||
information_schema
|
||||
mtr
|
||||
@ -186,7 +190,7 @@ CREATE PROCEDURE testproc() BEGIN END;
|
||||
UPDATE mysql.proc SET character_set_client = NULL WHERE name LIKE 'testproc';
|
||||
UPDATE mysql.proc SET collation_connection = NULL WHERE name LIKE 'testproc';
|
||||
UPDATE mysql.proc SET db_collation = NULL WHERE name LIKE 'testproc';
|
||||
Phase 1/3: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 1/4: Checking mysql database
|
||||
Processing databases
|
||||
mysql
|
||||
mysql.column_stats OK
|
||||
@ -217,8 +221,9 @@ mysql.time_zone_name OK
|
||||
mysql.time_zone_transition OK
|
||||
mysql.time_zone_transition_type OK
|
||||
mysql.user OK
|
||||
Phase 2/3: Fixing table and database names
|
||||
Phase 3/3: Checking and upgrading tables
|
||||
Phase 2/4: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 3/4: Fixing table and database names
|
||||
Phase 4/4: Checking and upgrading tables
|
||||
Processing databases
|
||||
information_schema
|
||||
mtr
|
||||
@ -239,7 +244,7 @@ WARNING: NULL values of the 'db_collation' column ('mysql.proc' table) have been
|
||||
GRANT USAGE ON *.* TO 'user3'@'%';
|
||||
GRANT ALL PRIVILEGES ON `roelt`.`test2` TO 'user3'@'%';
|
||||
Run mysql_upgrade with all privileges on a user
|
||||
Phase 1/3: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 1/4: Checking mysql database
|
||||
Processing databases
|
||||
mysql
|
||||
mysql.column_stats OK
|
||||
@ -270,8 +275,9 @@ mysql.time_zone_name OK
|
||||
mysql.time_zone_transition OK
|
||||
mysql.time_zone_transition_type OK
|
||||
mysql.user OK
|
||||
Phase 2/3: Fixing table and database names
|
||||
Phase 3/3: Checking and upgrading tables
|
||||
Phase 2/4: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 3/4: Fixing table and database names
|
||||
Phase 4/4: Checking and upgrading tables
|
||||
Processing databases
|
||||
information_schema
|
||||
mtr
|
||||
@ -287,7 +293,7 @@ GRANT ALL PRIVILEGES ON `roelt`.`test2` TO 'user3'@'%'
|
||||
DROP USER 'user3'@'%';
|
||||
End of 5.1 tests
|
||||
The --upgrade-system-tables option was used, user tables won't be touched.
|
||||
Phase 1/3: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 1/4: Checking mysql database
|
||||
Processing databases
|
||||
mysql
|
||||
mysql.column_stats OK
|
||||
@ -318,6 +324,7 @@ mysql.time_zone_name OK
|
||||
mysql.time_zone_transition OK
|
||||
mysql.time_zone_transition_type OK
|
||||
mysql.user OK
|
||||
Phase 2/4: Running 'mysql_fix_privilege_tables'...
|
||||
OK
|
||||
#
|
||||
# Bug#11827359 60223: MYSQL_UPGRADE PROBLEM WITH OPTION
|
||||
@ -325,7 +332,7 @@ OK
|
||||
#
|
||||
# Droping the previously created mysql_upgrade_info file..
|
||||
# Running mysql_upgrade with --skip-write-binlog..
|
||||
Phase 1/3: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 1/4: Checking mysql database
|
||||
Processing databases
|
||||
mysql
|
||||
mysql.column_stats OK
|
||||
@ -356,8 +363,9 @@ mysql.time_zone_name OK
|
||||
mysql.time_zone_transition OK
|
||||
mysql.time_zone_transition_type OK
|
||||
mysql.user OK
|
||||
Phase 2/3: Fixing table and database names
|
||||
Phase 3/3: Checking and upgrading tables
|
||||
Phase 2/4: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 3/4: Fixing table and database names
|
||||
Phase 4/4: Checking and upgrading tables
|
||||
Processing databases
|
||||
information_schema
|
||||
mtr
|
||||
@ -378,7 +386,7 @@ GRANT INSERT ON mysql.user TO very_long_user_name_number_2;
|
||||
GRANT UPDATE (User) ON mysql.db TO very_long_user_name_number_1;
|
||||
GRANT UPDATE (User) ON mysql.db TO very_long_user_name_number_2;
|
||||
CREATE PROCEDURE test.pr() BEGIN END;
|
||||
Phase 1/3: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 1/4: Checking mysql database
|
||||
Processing databases
|
||||
mysql
|
||||
mysql.column_stats OK
|
||||
@ -409,8 +417,9 @@ mysql.time_zone_name OK
|
||||
mysql.time_zone_transition OK
|
||||
mysql.time_zone_transition_type OK
|
||||
mysql.user OK
|
||||
Phase 2/3: Fixing table and database names
|
||||
Phase 3/3: Checking and upgrading tables
|
||||
Phase 2/4: Running 'mysql_fix_privilege_tables'...
|
||||
Phase 3/4: Fixing table and database names
|
||||
Phase 4/4: Checking and upgrading tables
|
||||
Processing databases
|
||||
information_schema
|
||||
mtr
|
||||
|
Reference in New Issue
Block a user