Customize the MySQL PS1 with current database

suggest change

In the .bashrc or .bash_profile, adding:

export MYSQL_PS1="\u@\h [\d]>"

make the MySQL client PROMPT show current user@host [database].

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents