When you want to see which user you are and which database you’re working with, put this in .my.cnf:
prompt=(\\u@\\h) [\\d]>\\_
Too bad mysql doesn’t support color. You can make it work with rlwrap, but that’s kind of clumsy.
edit: hmm, this destroys mysqldump… argh.
Recent Comments