Save Typing Using a my.cnf File

Linux, mysql

In your home directory, create a file name .my.cnf
[client]
user=joe
password=my_secret
host=localhost
[mysql]
database=this_db

Comments powered by Disqus

Copyright 2010. All Rights Reserved.