summaryrefslogblamecommitdiff
path: root/posts/2008-08-08-customize-your-mysql-prompt.md
blob: b63d45f7256d0e305ff5f26dc2aa876926bf19f0 (plain) (tree)
1
2
3
4
5
6
7
8







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

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

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