ExamVeda
Login
Home
This question belongs to MySQL MySQL Miscellaneous
MySQL Miscellaneous
?

What is the host name in the following MySQL command?
mysql -h cobra.snake.net -p -u sampadam

Answer & Solution
Correct Answer: Option B
This question asks you to identify the host name used in a MySQL command. The host name tells MySQL where to connect to the database server.
Let's break down the command:
mysql -h cobra.snake.net -p -u sampadam

- mysql: This is the command to start the MySQL client.
- -h cobra.snake.net: This part specifies the host name. cobra.snake.net is the server address where the MySQL database is located.
- -p: This flag prompts for the password.
- -u sampadam: This specifies the username for the database connection.

Therefore, the correct answer is Option B: cobra.snake.net.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.