mariadb/mysql-test/main/mysql_install_db_win_utf8.result
Vladislav Vaintroub f97c8f7ece MDEV-26715 Fix mysql_install_db_win tests.
It looks like  C/C reconnect retains the database. It is correct behavior
However there is a problem that mysql_install_db.exe does not create
'test' database, thus using mysql_install_db to create datadir,
then restarting server and reconnecting does not succeed, if 'test' was
current db before reconnect.

The problem became apparent with MDEV-26715. Why it worked before,
with a simpler 'root' definition is a mystery.

Fix is to switch current connection to 'mysql' database, prior to
reconnect to the instance created via mysql_install_db.exe
2022-11-08 14:58:48 +01:00

16 lines
336 B
Text

use mysql;
Running bootstrap
Creating my.ini file
Removing default user
Allowing remote access for user root
Setting root password
Creation of the database was successful
# Kill the server
connect con1,localhost,root,パスワード,mysql;
SELECT @@datadir;
@@datadir
DATADIR/
# Kill the server
connection default;
# restart
use test;