If I have root on a mysql database and I want to drop privileges to that of a normal user, without using their password, can I do it? if so how? think # su - username on unix. Basically, I'm just looking to avoid needing their password to be them, so I can test their privileges at their user. In postgres I could simply allow an ident authentication on the system root user, to bypass password auth. The reason I need this is to be able to reproduce a users problem by being them, not being them will not allow an accurate reproduction. I can of course ask for their password, but that takes more time that bypassing it.
|
|
||||
|
|
|
I just realized -- so long as you don't mind locking out the user while you log in --
... you may need to |
|||||||
|
|
I don't know of a specific way to replicate the equivalent of |
|||||||||||
|
|
It is possible to emulate a user as of MySQL 5.5.7, with the introduction of Proxy Users. I had never done this before, so I tried it out using the test authentication plugin, as it seems proxy users only works with authentication plugins enabled. Here are the steps I took. First steps as root:
Now, try to login using user:
|
|||
|
|


