

======================================================================================
Checking the user access with SSL through user created with mysql_native_password plugin
======================================================================================

CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_native_password';
set @@session.old_passwords=0;
Warnings:
Warning	1681	'old_passwords' is deprecated and will be removed in a future release.
set password for 'Tanjotuser1'@'localhost' = 'abc';
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
0
0 for GLOBAL Expected
0 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
0
0 for GLOBAL Expected
0 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
0
0 for GLOBAL Expected
0 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
0
0 for GLOBAL Expected
0 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
0
0 for GLOBAL Expected
0 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
0
0 for GLOBAL Expected
0 for SESSION Expected
DROP USER 'Tanjotuser1'@'localhost';


======================================================================================
Checking the user access with SSL through user created with sha256_password plugin
======================================================================================

Creating a user with the sha256_password
CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'sha256_password';
set @@session.old_passwords=2;
Warnings:
Warning	1681	'old_passwords' is deprecated and will be removed in a future release.
set password for 'Tanjotuser1'@'localhost' = 'abc';
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
2
0 for GLOBAL Expected
2 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
2
0 for GLOBAL Expected
2 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
2
0 for GLOBAL Expected
2 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
2
0 for GLOBAL Expected
2 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
2
0 for GLOBAL Expected
2 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
0
@@session.old_passwords
2
0 for GLOBAL Expected
2 for SESSION Expected
DROP USER 'Tanjotuser1'@'localhost';


=================================================================================================
Starting the server with the default authentication sha256_password
=================================================================================================

# Restart server with default-authentication-plugin=sha256_password;


======================================================================================
Checking the user access with SSL through user created with mysql_native_password plugin
======================================================================================

Creating a user with the mysql_native_password
CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_native_password';
set @@session.old_passwords=0;
Warnings:
Warning	1681	'old_passwords' is deprecated and will be removed in a future release.
set password for 'Tanjotuser1'@'localhost' = 'abc';
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
0
2 for GLOBAL Expected
0 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
0
2 for GLOBAL Expected
0 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
0
2 for GLOBAL Expected
0 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
0
2 for GLOBAL Expected
0 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
0
2 for GLOBAL Expected
0 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
0
2 for GLOBAL Expected
0 for SESSION Expected
DROP USER 'Tanjotuser1'@'localhost';


======================================================================================
Checking the user access with SSL through user created with sha256_password plugin
======================================================================================

Creating a user with the sha256_plugin
CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'sha256_password';
set @@session.old_passwords=2;
Warnings:
Warning	1681	'old_passwords' is deprecated and will be removed in a future release.
set password for 'Tanjotuser1'@'localhost' = 'abc';
GRANT ALL on *.* to 'Tanjotuser1'@'localhost';
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
2
2 for GLOBAL Expected
2 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
2
2 for GLOBAL Expected
2 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
2
2 for GLOBAL Expected
2 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
2
2 for GLOBAL Expected
2 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
2
2 for GLOBAL Expected
2 for SESSION Expected
**** connecting client using the ssl credentials
@@Global.old_passwords
2
@@session.old_passwords
2
2 for GLOBAL Expected
2 for SESSION Expected
DROP USER 'Tanjotuser1'@'localhost';
set @@session.old_passwords=default;
Warnings:
Warning	1681	'old_passwords' is deprecated and will be removed in a future release.
