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 host=mysql.domain.com
Now I can type mysql at the command line and connect directly to the database I want.


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 18.119.133.206
To prevent spam please submit by clicking the kitten: