Not sure if this can be done but from everything I read it seems possible, just not sure how to code it. at best I would imagine it would look something like
CREATE USER user1@localhost IDENTIFIED BY 'passwd';
GRANT OPTIONS userA
ON test
TO user1
and that is where I get lost, how do I tell my schema I want to grant 'user1' the exact privileges as 'userA'. thanks in advance, and I think that I am close or on the right track.
MYSQL workbench 5.2.38 CE
I FOUND THIS
**GRANT PROXY ON 'localuser'@'localhost' TO 'externaluser'@'somehost';
When PROXY is granted, it must be the only privilege named in the GRANT statement, the REQUIRE clause cannot be given, and the only permitted WITH option is WITH GRANT OPTION.
Proxying requires that the proxy user authenticate through a plugin that returns the name of the proxied user to the server when the proxy user connects, and that the proxy user have the PROXY privilege for the proxied user. For details and examples, see Section 6.3.7, “Proxy Users”.
so it can be done, and I have not referred to section 6.3.7 just yet. Once I know more I will post more **