39 lines
1.9 KiB
Plaintext
39 lines
1.9 KiB
Plaintext
# This test is added to verify the Bug#27400095 fix
|
|
|
|
# Skip on Windows as it does not have SOCKET connection protocol support
|
|
--source include/not_windows.inc
|
|
|
|
# Create a new datadir1 and a new user with non-default plugin type
|
|
--source suite/auth_sec/include/skip_grant_protocols.inc
|
|
|
|
--disable_ps_protocol
|
|
--enable_connect_log
|
|
|
|
--echo # Restart server with --skip-grant-tables option and new datadir
|
|
--replace_result $MYSQLD_DATADIR1 MYSQLD_DATADIR1
|
|
--let $restart_parameters="restart: --skip-grant-tables --datadir=$MYSQLD_DATADIR1"
|
|
--source include/restart_mysqld.inc
|
|
|
|
--echo
|
|
--echo # connect the root user which uses the default auth plugin
|
|
--exec $MYSQL --host=localhost --user=root --password=passwd --protocol=SOCKET -e "SELECT connection_type FROM performance_schema.threads WHERE processlist_command='Query'; SELECT current_user;"
|
|
|
|
--echo
|
|
--echo # connect the native_user plugin user which uses the default auth plugin
|
|
--exec $MYSQL --host=localhost --user=native_user --password=passwd --protocol=SOCKET -e "SELECT connection_type FROM performance_schema.threads WHERE processlist_command='Query'; SELECT current_user;"
|
|
|
|
--echo
|
|
--echo # connect the root user which uses the non-default auth plugin
|
|
--exec $MYSQL --host=localhost --user=root --password=passwd --protocol=SOCKET --default-auth=mysql_native_password -e "SELECT connection_type FROM performance_schema.threads WHERE processlist_command='Query'; SELECT current_user;"
|
|
|
|
--echo
|
|
--echo # connect the native user plugin user which uses corresponding plugin
|
|
--exec $MYSQL --host=localhost --user=native_user --password=passwd --default-auth=mysql_native_password --protocol=SOCKET -e "SELECT connection_type FROM performance_schema.threads WHERE processlist_command='Query'; SELECT current_user;"
|
|
|
|
--echo
|
|
--echo # Cleanup
|
|
let $restart_parameters=;
|
|
--source include/restart_mysqld.inc
|
|
# Remove residue files and data folder
|
|
--force-rmdir $MYSQL_TMP_DIR/datadir1/
|