summaryrefslogtreecommitdiff
path: root/posts/2008-08-08-customize-your-mysql-prompt.md
blob: afb460883648334438d3b7625b7ad733f10ec38e (plain) (blame)
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:

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

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