Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (6 sloc) 204 Bytes

To customize your MySQL prompt, create a .my.cnf file in your $HOME then add the following:

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

Your prompt will now looks like this: username [dabatases_name] >