You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
2.1 KiB
46 lines
2.1 KiB
# restart:--upgrade=FORCE --sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,ANSI_QUOTES --log-error=MYSQLD_LOG
|
|
# There should be no errors
|
|
Pattern "\[ERROR\]" not found
|
|
# mysql_upgrade_info file should be created successfully.
|
|
Pattern "Could not open server upgrade info file \'.*\' for writing\. Please make sure the file is writable\." not found
|
|
# Restart server with defaults
|
|
# restart:
|
|
#
|
|
# Bug #27549249: MYSQL_UPGRADE FAILED TO CHANGE @@SESSION.SQL_LOG_BIN
|
|
# WHEN AUTOCOMMIT IS OFF
|
|
#
|
|
# restart:--upgrade=FORCE --autocommit=0
|
|
# Restart server with defaults
|
|
# restart:
|
|
#
|
|
# Bug #28392985: SESSION USER DOES NOT HAVE PRIV SESSION_VARIABLES_ADMIN IN UPGRADED DATABASE
|
|
#
|
|
SHOW GRANTS FOR "mysql.session"@localhost;
|
|
Grants for mysql.session@localhost
|
|
GRANT SHUTDOWN, SUPER ON *.* TO `mysql.session`@`localhost`
|
|
GRANT BACKUP_ADMIN,CLONE_ADMIN,CONNECTION_ADMIN,PERSIST_RO_VARIABLES_ADMIN,SESSION_VARIABLES_ADMIN,SYSTEM_USER,SYSTEM_VARIABLES_ADMIN ON *.* TO `mysql.session`@`localhost`
|
|
GRANT SELECT ON `performance_schema`.* TO `mysql.session`@`localhost`
|
|
GRANT SELECT ON `mysql`.`user` TO `mysql.session`@`localhost`
|
|
REVOKE SESSION_VARIABLES_ADMIN ON *.* FROM "mysql.session"@localhost;
|
|
# restart:--upgrade=FORCE
|
|
# Must have SESSION_VARIABLES_ADMIN;
|
|
SHOW GRANTS FOR "mysql.session"@localhost;
|
|
Grants for mysql.session@localhost
|
|
GRANT SHUTDOWN, SUPER ON *.* TO `mysql.session`@`localhost`
|
|
GRANT BACKUP_ADMIN,CLONE_ADMIN,CONNECTION_ADMIN,PERSIST_RO_VARIABLES_ADMIN,SESSION_VARIABLES_ADMIN,SYSTEM_USER,SYSTEM_VARIABLES_ADMIN ON *.* TO `mysql.session`@`localhost`
|
|
GRANT SELECT ON `performance_schema`.* TO `mysql.session`@`localhost`
|
|
GRANT SELECT ON `mysql`.`user` TO `mysql.session`@`localhost`
|
|
#
|
|
# Bug #28855207: 8.0.13 - MYSQL_UPGRADE FAILS DUE TO PRIMARY KEY ERROR WITHOUT STATING THE TABLE
|
|
#
|
|
# restart: --sql_require_primary_key=1 --upgrade=FORCE
|
|
#
|
|
# Bug #29702060: BE MORE ROBUST IF MYSQL_UPGRADE_INFO IS NOT WRITABLE
|
|
#
|
|
# restart:--upgrade=FORCE --log-error=MYSQLD_LOG
|
|
|
|
Pattern "Could not open server upgrade info file \'.*\' for writing\. Please make sure the file is writable\." found
|
|
# Cleanup
|
|
# restart:
|
|
|
|
End of tests
|
|
|