2006-11-13 13:39:49 +01:00
Run mysql_upgrade once
2008-10-30 14:52:04 +01:00
mtr.global_suppressions OK
mtr.test_suppressions OK
2006-11-13 13:39:49 +01:00
mysql.columns_priv OK
mysql.db OK
2007-04-18 16:23:19 +02:00
mysql.event OK
2006-11-13 13:39:49 +01:00
mysql.func OK
2007-08-27 11:27:03 +02:00
mysql.general_log
Error : You can't use locks with log tables.
status : OK
2006-11-13 13:39:49 +01:00
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
2007-04-18 16:23:19 +02:00
mysql.ndb_binlog_index OK
mysql.plugin OK
2006-11-13 13:39:49 +01:00
mysql.proc OK
mysql.procs_priv OK
2007-04-18 16:23:19 +02:00
mysql.servers OK
2007-08-27 11:27:03 +02:00
mysql.slow_log
Error : You can't use locks with log tables.
status : OK
2006-11-13 13:39:49 +01:00
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
Run it again - should say already completed
2007-04-18 13:21:39 +02:00
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
2008-10-30 14:52:04 +01:00
mtr.global_suppressions OK
mtr.test_suppressions OK
2006-11-13 13:39:49 +01:00
mysql.columns_priv OK
mysql.db OK
2007-04-18 16:23:19 +02:00
mysql.event OK
2006-11-13 13:39:49 +01:00
mysql.func OK
2007-08-27 11:27:03 +02:00
mysql.general_log
Error : You can't use locks with log tables.
status : OK
2006-11-13 13:39:49 +01:00
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
2007-04-18 16:23:19 +02:00
mysql.ndb_binlog_index OK
mysql.plugin OK
2006-11-13 13:39:49 +01:00
mysql.proc OK
mysql.procs_priv OK
2007-04-18 16:23:19 +02:00
mysql.servers OK
2007-08-27 11:27:03 +02:00
mysql.slow_log
Error : You can't use locks with log tables.
status : OK
2006-11-13 13:39:49 +01:00
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
2007-04-18 13:21:39 +02:00
CREATE USER mysqltest1@'%' IDENTIFIED by 'sakila';
GRANT ALL ON *.* TO mysqltest1@'%';
Run mysql_upgrade with password protected account
2008-10-30 14:52:04 +01:00
mtr.global_suppressions OK
mtr.test_suppressions OK
2007-04-18 13:21:39 +02:00
mysql.columns_priv OK
mysql.db OK
2007-04-18 16:23:19 +02:00
mysql.event OK
2007-04-18 13:21:39 +02:00
mysql.func OK
2007-08-27 11:27:03 +02:00
mysql.general_log
Error : You can't use locks with log tables.
status : OK
2007-04-18 13:21:39 +02:00
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
2007-04-18 16:23:19 +02:00
mysql.ndb_binlog_index OK
mysql.plugin OK
2007-04-18 13:21:39 +02:00
mysql.proc OK
mysql.procs_priv OK
2007-04-18 16:23:19 +02:00
mysql.servers OK
2007-08-27 11:27:03 +02:00
mysql.slow_log
Error : You can't use locks with log tables.
status : OK
2007-04-18 13:21:39 +02:00
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
DROP USER mysqltest1@'%';
Run mysql_upgrade with a non existing server socket
2007-04-19 21:35:10 +02:00
mysqlcheck: Got error: 2005: Unknown MySQL server host 'not_existing_host' (errno) when trying to connect
2007-04-18 13:21:39 +02:00
FATAL ERROR: Upgrade failed
2007-05-19 18:15:08 +02:00
set GLOBAL sql_mode='STRICT_ALL_TABLES,ANSI_QUOTES,NO_ZERO_DATE';
2008-10-30 14:52:04 +01:00
mtr.global_suppressions OK
mtr.test_suppressions OK
2007-05-19 18:15:08 +02:00
mysql.columns_priv OK
mysql.db OK
2007-05-19 18:22:55 +02:00
mysql.event OK
2007-05-19 18:15:08 +02:00
mysql.func OK
2007-08-27 11:27:03 +02:00
mysql.general_log
Error : You can't use locks with log tables.
status : OK
2007-05-19 18:15:08 +02:00
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
2007-05-19 18:22:55 +02:00
mysql.ndb_binlog_index OK
mysql.plugin OK
2007-05-19 18:15:08 +02:00
mysql.proc OK
mysql.procs_priv OK
2007-05-19 18:22:55 +02:00
mysql.servers OK
2007-08-27 11:27:03 +02:00
mysql.slow_log
Error : You can't use locks with log tables.
status : OK
2007-05-19 18:15:08 +02:00
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
set GLOBAL sql_mode=default;
2009-12-03 17:15:47 +01:00
#
# Bug #41569 mysql_upgrade (ver 5.1) add 3 fields to mysql.proc table
# but does not set values.
#
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';
mtr.global_suppressions OK
mtr.test_suppressions OK
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.general_log
Error : You can't use locks with log tables.
status : OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.ndb_binlog_index OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.servers OK
mysql.slow_log
Error : You can't use locks with log tables.
status : OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
CALL testproc();
DROP PROCEDURE testproc;
2009-12-04 17:00:20 +01:00
WARNING: NULL values of the 'character_set_client' column ('mysql.proc' table) have been updated with a default value (latin1). Please verify if necessary.
WARNING: NULL values of the 'collation_connection' column ('mysql.proc' table) have been updated with a default value (latin1_swedish_ci). Please verify if necessary.
WARNING: NULL values of the 'db_collation' column ('mysql.proc' table) have been updated with default values. Please verify if necessary.
2010-07-01 11:05:09 +02:00
#
# Bug #53613: mysql_upgrade incorrectly revokes
# TRIGGER privilege on given table
#
GRANT USAGE ON *.* TO 'user3'@'%';
GRANT ALL PRIVILEGES ON `roelt`.`test2` TO 'user3'@'%';
Run mysql_upgrade with all privileges on a user
mtr.global_suppressions OK
mtr.test_suppressions OK
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.general_log
Error : You can't use locks with log tables.
status : OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.ndb_binlog_index OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.servers OK
mysql.slow_log
Error : You can't use locks with log tables.
status : OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
SHOW GRANTS FOR 'user3'@'%';
Grants for user3@%
GRANT USAGE ON *.* TO 'user3'@'%'
GRANT ALL PRIVILEGES ON `roelt`.`test2` TO 'user3'@'%'
DROP USER 'user3'@'%';
End of 5.1 tests
2009-10-28 11:02:00 +01:00
The --upgrade-system-tables option was used, databases won't be touched.