Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL version at prompt might be useful #83

Open
sergio-m opened this issue Mar 26, 2015 · 1 comment
Open

MySQL version at prompt might be useful #83

sergio-m opened this issue Mar 26, 2015 · 1 comment

Comments

@sergio-m
Copy link

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

@abg
Copy link
Owner

abg commented Mar 27, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants