1 # Include this in any test using mysql_upgrade
3 # Can't run test of external client with embedded server
4 -- source include/not_embedded.inc
6 # Only run test if "mysql_upgrade" is found
7 --require r/have_mysql_upgrade.result
9 select LENGTH(
"$MYSQL_UPGRADE")>0 as have_mysql_upgrade;
15 # If running with Valgrind ($VALGRIND_TEST <> 0) then the resource
16 # consumption (CPU) for upgrading a large log table will be intense.
17 # Therefore, truncate the log table in advance and issue a statement
18 # that should be logged.
24 --disable_abort_on_error
25 TRUNCATE
TABLE mysql.general_log;
27 --enable_abort_on_error