In mysqld.cnf or equivalent:
mysqld.cnf
[mysql] prompt = '\\u@\\h [\\d]> '
This achieves a similar effect, without having to deal with .bashrc’s.
.bashrc