Mysql command line tool

If you always connect to the same MySQL server you can speed up the login process. Create a file .my.cnf in your home directory with the following contents.

[client] user=bakers password=sekrit_password database=my_database
Now I can type mysql at the command line and connect directly to the database I want.
Leave A Reply
All content licensed under the Creative Commons License