From 4b8e43f75b394a4e6169884fbfb4c606865c6a22 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 2 Jul 2016 20:06:31 -0700 Subject: Import migration from Jekyll to Hugo. All the posts were converted, and the layout is created. This looks like it works just fine. --- content/post/2008-08-08-customize-your-mysql-prompt.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 content/post/2008-08-08-customize-your-mysql-prompt.md (limited to 'content/post/2008-08-08-customize-your-mysql-prompt.md') 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] >` -- cgit v1.2.3