Bug #84806 Add mtr option for changing charset or the test database of mtr.
Submitted: 3 Feb 2017 9:00 Modified: 3 Feb 2017 15:53
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S3 (Non-critical)
Version:8.0.1 OS:Any
Assigned to: CPU Architecture:Any

[3 Feb 2017 9:00] Tor Didriksen
Description:
We want to be able to change default charset of the server, and of all
mtr tests. In order to do incremental testing/changes of mtr tests, implement:

How to repeat:
./mtr --charset-for-testdb=utf8mb4 main.key_cache

Suggested fix:
   # Create test database
   mtr_tofile($bootstrap_sql_file,
-            "CREATE DATABASE test;\n");
+            "CREATE DATABASE test CHARACTER SET $opt_charset_for_testdb;\n");
[3 Feb 2017 15:53] Paul DuBois
Posted by developer:
 
Noted in 8.0.1 changelog.

mysql-test-run.pl now has a --charset-for-testdb=charset_name option
for specifying the default character set for the test database. The
default value is latin1.