how to emulate "su mysql" in ubuntu?
Patrick Doyle
wpdster at gmail.com
Wed Jul 28 16:03:09 UTC 2010
On Wed, Jul 28, 2010 at 12:00 PM, Robert P. J. Day
<rpjday at crashcourse.ca> wrote:
> On Wed, 28 Jul 2010, Patrick Doyle wrote:
>
>> I see that sudo takes a -u argument, perhaps
>>
>> $ sudo -u mysql /bin/sh
>>
>> might do the trick.
>
> yes, that appears to work, but i could *swear* that was also one of
> the first things i tried. i must have tested every subtle variation
> of that except for that. argh. thanks.
>
And, of course, Marius Gedminas gave the more elegant solution of:
$ sudo -u mysql -s
which I'd like to think I would have noticed if I'd read the man page
past the "-u" argument. :-)
--wpd
More information about the ubuntu-users
mailing list