Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 2 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

 
discard

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.