dbsake icon indicating copy to clipboard operation
dbsake copied to clipboard

MySQL version at prompt might be useful

Open sergio-m opened this issue 9 years ago • 1 comments

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] >

sergio-m avatar Mar 26 '15 20:03 sergio-m

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.

abg avatar Mar 27 '15 14:03 abg