2010-10-20 16:56:09 +02:00
|
|
|
CREATE DATABASE test_user_db;
|
|
|
|
CREATE USER qa_test_11_user IDENTIFIED WITH qa_auth_server AS 'qa_test_11_dest';
|
|
|
|
GRANT ALL PRIVILEGES ON test_user_db.* TO qa_test_11_dest identified by 'dest_passwd';
|
|
|
|
GRANT PROXY ON qa_test_11_dest TO qa_test_11_user;
|
2011-07-02 22:12:12 +02:00
|
|
|
exec MYSQL --default_auth=qa_auth_client -h localhost -P MASTER_MYPORT -u qa_test_11_user --password=qa_test_11_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
|
2010-10-20 16:56:09 +02:00
|
|
|
current_user() user() @@local.proxy_user @@local.external_user
|
2013-03-26 17:57:36 +01:00
|
|
|
qa_test_11_dest@% qa_test_11_user@localhost 'qa_test_11_user'@'%' NULL
|
2011-07-02 22:12:12 +02:00
|
|
|
exec MYSQL --default_auth=qa_auth_client -h localhost -P MASTER_MYPORT -u qa_test_2_user --password=qa_test_11_dest test_user_db -e "SELECT current_user(),user(),@@local.proxy_user,@@local.external_user;" 2>&1
|
2014-03-26 22:32:10 +01:00
|
|
|
ERROR 1045 (28000): Access denied for user 'qa_test_2_user'@'localhost' (using password: YES)
|
2010-10-20 16:56:09 +02:00
|
|
|
DROP USER qa_test_11_user, qa_test_11_dest;
|
|
|
|
DROP DATABASE test_user_db;
|