mariadb/mysql-test/main/mysql_install_db_win_admin.test
Vladislav Vaintroub 125e172a2b MDEV-26715 Windows/installer - allow passwordless login for root
Allow passwordless login in addition to usual login with password, when
creating 'root' user during install.

The effect of that change is that "local administrators" group are
allowed to connect as root user. This is done via gssapi authentication
plugin.

Clients that are not aware of gssapi client plugin, can still login with
password credentials.
2022-11-08 14:58:47 +01:00

21 lines
634 B
Text

--source include/windows.inc
--source include/check_windows_admin.inc
--source include/have_innodb.inc
# Create database in tmp directory using mysql_install_db.exe,
# and start server from this directory.
let $ddir= $MYSQLTEST_VARDIR/tmp/ddir;
use mysql;
exec $MYSQL_INSTALL_DB_EXE --datadir=$ddir --password=foo -R;
--source include/kill_mysqld.inc
let $restart_parameters=--datadir=$ddir;
--source include/start_mysqld.inc
# Check that connect with wrong password succeeds
connect (root,localhost,root,wrongpass,mysql);
--source include/kill_mysqld.inc
let $restart_parameters=;
rmdir $ddir;
--source include/start_mysqld.inc