I use the "mysql" command-line tool all the time, and frequently forget what database (schema) I'm on.

Is there a way to change the prompt? It'd be much more useful to see foo_bar_schema> than mysql> all the time.

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

Take a look at the documentation for mysql commands.

You can change the prompt to just the current database by typing using this command:

prompt \d>\_
link|improve this answer
That documentation link will also help you make the change permanent. – William Jackson Oct 15 '11 at 13:36
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.