Custom PS1 via MySQL configuration file
suggest changeIn mysqld.cnf or equivalent:
[mysql]
prompt = '\u@\h [\d]> '
This has a similar effect without using .bashrc. The setting belongs in the [mysql] client section, not [mysqld].
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents