diff options
| author | Franck Cuny <franck.cuny@gmail.com> | 2016-08-10 14:33:04 -0700 |
|---|---|---|
| committer | Franck Cuny <franck.cuny@gmail.com> | 2016-08-10 20:17:56 -0700 |
| commit | 8d7d02f42c3947f756c18cb4d37d9d97fbd0d27d (patch) | |
| tree | a6cecddaaea7e87d901a6c28bebe3a531438f24b /posts/2008-08-08-customize-your-mysql-prompt.md | |
| parent | Merge branch 'convert-to-org' (diff) | |
| download | lumberjaph-8d7d02f42c3947f756c18cb4d37d9d97fbd0d27d.tar.gz | |
convert back to md
Diffstat (limited to 'posts/2008-08-08-customize-your-mysql-prompt.md')
| -rw-r--r-- | posts/2008-08-08-customize-your-mysql-prompt.md | 8 |
1 files changed, 8 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..b63d45f --- /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: + +``` bash +[mysql] +prompt="\\u [\\d] >" +``` + +Your prompt will now looks like this: `username [dabatases_name] >` |
