Q241
Which of the following options tells mysql to ask for entering the password?
A.
-e
B.
-p
AnswerC.
-u
D.
-h
Answer: Option B
Solution
Answer: Option B
Solution:
This question is asking about how to tell MySQL to prompt you for your password when you're connecting to it. Here's the breakdown of each option:
* -e : This option is used to execute a command directly from the command line.
* -p : This option is the correct answer! It tells MySQL to ask you for your password before establishing a connection.
* -u : This option is used to specify the username you want to connect with.
* -h : This option is used to specify the hostname or IP address of the MySQL server you want to connect to.
So the answer is Option B: -p