summaryrefslogtreecommitdiff
path: root/_posts/2008-08-08-customize-your-mysql-prompt.md
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2008-08-08-customize-your-mysql-prompt.md')
-rw-r--r--_posts/2008-08-08-customize-your-mysql-prompt.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/_posts/2008-08-08-customize-your-mysql-prompt.md b/_posts/2008-08-08-customize-your-mysql-prompt.md
new file mode 100644
index 0000000..f023186
--- /dev/null
+++ b/_posts/2008-08-08-customize-your-mysql-prompt.md
@@ -0,0 +1,14 @@
+---
+layout: post
+summary: In which we customize our MySQL prompt
+title: Customize your MySQL prompt
+---
+
+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] >`