Wednesday, August 24, 2011

MySQL Tip: My Two Line .my.cnf File

These days, I still prefer a command line mysql interface to anything else. And whlie I'm sure there's way more I can do with .my.cnf to make the session improved, the following has turned out to be pretty dang essential:

[mysql]
prompt="\\u [\\d]> "

If you interact with mysql via the command line, take a minute to put the above in your ~/.my.cnf, I guarantee you'll thank me.

No comments:

Post a Comment