dbsake
dbsake copied to clipboard
MySQL version at prompt might be useful
SUGGESTION ONLY:
Perhaps appending the MySQL version to the prompt might be useful for debugging sessions when testing features against different versions.
This seems to be coded in the sandbox.sh MYSQL_PS1="mysql[sandbox]> " \
Suggestions:
mysql-5.0.95 [sandbox] > mysql-5.5.42 [sandbox] > mariadb-10.0.17 [sandbox] >
This can be overridden in the my.sandbox.cnf:
[mysql]
no-auto-rehash
prompt = "mysql-\v [sandbox]> "
And then you'll see something like:
# ./sandbox.sh mysql
...
mysql-5.6.23-log[sandbox]>
I think it's reasonable to remove the use of MYSQL_PS1 and push this into my.sandbox.cnf instead so it's more obviously configurable in the future.