Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To login into mysql, in ubuntu we have a option from terminal like

  shell# mysql -uxxx -pyyyy;

Now, I would be as "XXX" user in mysql. and terminal would be like


Now, I want to enter into mysql as a different user(Eg: YYY user) from here itself without quitting.

Is there any way? Appreciate if any help.

share|improve this question

migrated from May 6 '13 at 8:49

This question came from our site for professional and enthusiast programmers.

IMHO there is no way to do that. – peterm May 6 '13 at 6:33

You'll have to quit. But there are some interesting perspectives in this similar question here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.