how to emulate "su mysql" in ubuntu?

Steve Flynn anothermindbomb at gmail.com
Wed Jul 28 15:35:44 UTC 2010


On Wed, Jul 28, 2010 at 4:29 PM, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
>
>  i just know i'm going to regret asking this, but how can i emulate
> the effect of doing "su mysql" in ubuntu?  i'm trying to recover a
> damaged mysql db and in the list of instructions is the note that you
> have to run the mysql server in rescue mode as the mysql user, so the
> page instructs one to "su mysql" first.
>
>  well, if i was on fedora, that would be easy.  but what's the
> equivalent on ubuntu?  is it simple?  or will it require editing
> /etc/sudoers and so on?

What's wrong with "su - mysql"? I presume you know the mysql password.


-- 
Steve
When one person suffers from a delusion it is insanity. When many
people suffer from a delusion it is called religion.

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0




More information about the ubuntu-users mailing list