How do you login to MySql using Unix shell?



How do you login to MySql using Unix shell?..

Answer / Nivedita Mishra

To log in to MySQL using the Unix shell, follow these steps:
1. Open a terminal window and type `mysql -u root -p`
2. When prompted, enter the root password.
3. If you're using a Unix-based system like Linux or macOS, you can also specify a user other than root by typing `mysql -h localhost -u username -p password`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

What is mysqli_free_result?

1 Answers  


How do I select a database in mysql?

1 Answers  


What are federated tables?

1 Answers  


how to find missing numbers between two order numbers; and dates ?

1 Answers  


How does mysql clustering work?

1 Answers  


How to calculate the difference between two dates?

1 Answers  


Can mysql store files?

1 Answers  


What happens if null values are involved in expressions?

1 Answers  


What are the non-standard sql commands supported by 'mysql'?

1 Answers  


What is delimiter in mysql?

1 Answers  


How many ways to get the current time?

1 Answers  


Can't connect mysql server on localhost?

1 Answers  


Categories