Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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

1 Answer 1

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.