summaryrefslogtreecommitdiff
path: root/content/post/2008-08-08-customize-your-mysql-prompt.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/post/2008-08-08-customize-your-mysql-prompt.md')
-rw-r--r--content/post/2008-08-08-customize-your-mysql-prompt.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/content/post/2008-08-08-customize-your-mysql-prompt.md b/content/post/2008-08-08-customize-your-mysql-prompt.md
new file mode 100644
index 0000000..801a7fe
--- /dev/null
+++ b/content/post/2008-08-08-customize-your-mysql-prompt.md
@@ -0,0 +1,14 @@
+---
+date: 2008-08-08T00:00:00Z
+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:
+
+```sh
+[mysql]
+prompt="\\u [\\d] >"
+```
+
+Your prompt will now looks like this: `username [dabatases_name] >`