1--source include/not_embedded.inc 2--source include/have_ssl.inc 3--source include/have_sha256_rsa_auth.inc 4--source include/mysql_upgrade_preparation.inc 5 6CREATE USER 'kristofer' IDENTIFIED BY 'secret'; 7SELECT user, plugin FROM mysql.user ORDER BY user; 8--exec $MYSQL -ukristofer -psecret --default_auth=sha256_password -e "select user(), current_user()" 9--exec $MYSQL -ukristofer -psecret --default_auth=mysql_native_password -e "select user(), current_user()" 10--exec $MYSQL -ukristofer -psecret --default_auth=sha256_password --server_public_key_path=$MYSQL_TEST_DIR/std_data/rsa_public_key.pem -e "select user(), current_user()" 11DROP USER 'kristofer'; 12 13GRANT ALL ON *.* TO 'kristofer'@'localhost' IDENTIFIED BY 'secret2'; 14--exec $MYSQL -ukristofer -psecret2 --default_auth=sha256_password -e "select user(), current_user()" 15--exec $MYSQL -ukristofer -psecret2 --default_auth=mysql_native_password -e "select user(), current_user()" 16--exec $MYSQL -ukristofer -psecret2 --default_auth=sha256_password --server_public_key_path=$MYSQL_TEST_DIR/std_data/rsa_public_key.pem -e "select user(), current_user()" 17SHOW GRANTS FOR 'kristofer'@'localhost'; 18DROP USER 'kristofer'@'localhost'; 19 20GRANT ALL ON *.* TO 'kristofer'@'localhost' IDENTIFIED BY '123'; 21--exec $MYSQL -ukristofer -p123 --default_auth=sha256_password -e "select user(), current_user()" 22--exec $MYSQL -ukristofer -p123 --default_auth=mysql_native_password -e "select user(), current_user()" 23--exec $MYSQL -ukristofer -p123 --default_auth=sha256_password --server_public_key_path=$MYSQL_TEST_DIR/std_data/rsa_public_key.pem -e "select user(), current_user()" 24SHOW GRANTS FOR 'kristofer'@'localhost'; 25DROP USER 'kristofer'@'localhost'; 26 27GRANT ALL ON *.* TO 'kristofer'@'33.33.33.33' IDENTIFIED BY '123'; 28--echo Connection should fail for localhost 29--replace_result $MASTER_MYSOCK MASTER_MYSOCK 30--disable_query_log 31--error ER_ACCESS_DENIED_ERROR 32connect(con4,127.0.0.1,kristofer,,,); 33--enable_query_log 34DROP USER 'kristofer'@'33.33.33.33'; 35 36 37