From 63f413891d5adc596e4d51dfba4d0d23fdea3ca4 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 31 Jul 2016 10:16:40 -0700 Subject: Stop generating a static site. --- posts/2008-08-08-customize-your-mysql-prompt.md | 8 ++++++++ 1 file changed, 8 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..afb4608 --- /dev/null +++ b/posts/2008-08-08-customize-your-mysql-prompt.md @@ -0,0 +1,8 @@ +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