Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I am new to using Mysql and I do not understand what does -u and -p imply?

share|improve this question
up vote 3 down vote accepted

These are command line options passed to mysql.

-u stands for the username and -p stands for the password

Whatever comes immediately after -u will be the username and after you press Return you need to enter your password (the password won't be visible and you need to type in your complete password followed by again a Return, you won't see * too in place of the password, it would be completely invisible).

See the manual page of mysql for more.

share|improve this answer

-u root says root is the user and -p will ask for a password.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.