summaryrefslogblamecommitdiff
path: root/_posts/2008-08-08-customize-your-mysql-prompt.md
blob: 62a25e67283bcdd4c6f6a6aa16b6c7ab2e973f0b (plain) (tree)
1
2
3
4
5



                                               
           









                                                                                           
---
layout: post
summary: In which we customize our MySQL prompt
title: Customize your MySQL prompt
type: codex
---

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

{% highlight sh %}
[mysql]
prompt="\\u [\\d] >"
{% endhighlight %}

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