summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/mysql_install_db_win_utf8.test
blob: 0dc75af39145dd0078fb1a88284f0d2c70e18a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--source include/windows.inc
--source include/check_utf8_cli.inc
use mysql;
# Create database  in tmp directory using mysql_install_db.exe,
# and start server from this directory.
let $ddir= $MYSQLTEST_VARDIR/tmp/датадир;
--error 0,1
rmdir $ddir;
exec $MYSQL_INSTALL_DB_EXE --datadir=$ddir --password=パスワード -R;
--source include/kill_mysqld.inc

# Note "restart" via MTR does not work, if server's command line has 
# non-ASCII characters used (or, characters outside of ANSI codepage).
# This is a perl limitation, which is worked around in this test - 
# the server started in background, via exec $MYSQLD

--replace_result $MYSQLD MYSQLD $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
exec $MYSQLD  --defaults-file=$MYSQLTEST_VARDIR/my.cnf --defaults-group-suffix=.1 --datadir=$ddir --loose-innodb > NUL 2>&1 &;
--enable_reconnect
--source include/wait_until_connected_again.inc
--disable_reconnect

connect (con1,localhost,root,パスワード,mysql);

# Smoke test - check that we're actually using datadir
# we've created (i.e restart_parameters worked)
--replace_result  $ddir DATADIR
SELECT @@datadir;
# restart in the original datadir again
--source include/kill_mysqld.inc
rmdir $ddir;

connection default;
--source include/start_mysqld.inc
use test;