How to login to MySQL through command line

A simple and fast way (non-graphical) to login to MySQL using a one liner command.

mysql -h localhost -u root -p

You will prompted to type in the password. Type the password and you're good to go.

No comments:

Post a Comment