From 8ddf2e94df70707b458528a437759b96046d3e01 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 26 Nov 2013 10:36:10 -0800 Subject: Huge update. Moved all posts from textile to markdown. Updated all the CSS and styles. Added a new page for the resume. --- _posts/2008-08-08-customize-your-mysql-prompt.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 _posts/2008-08-08-customize-your-mysql-prompt.md (limited to '_posts/2008-08-08-customize-your-mysql-prompt.md') 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] >` -- cgit v1.2.3