Skip to content

Instantly share code, notes, and snippets.

@acehand
Created June 27, 2014 15:57
Show Gist options
  • Save acehand/8d54b59ec2d0238b3059 to your computer and use it in GitHub Desktop.
Save acehand/8d54b59ec2d0238b3059 to your computer and use it in GitHub Desktop.
To make the Host name and db name appear in the mysql prompt
export MYSQL_PS1="\u@\h [\d]> "
add this to your path and from next time you mysql prompt will include host , user and the database name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment