mysqlenv - MySQL environment manager
mysqlenv command syntax:
mysqlenv <command> [options] [arguments]
Commands:
# show usage
mysqlenv help
# list available mysql versions
mysqlenv available
# install mysql binary
mysqlenv install 5.6.10
# list installed mysqls
mysqlenv list
# execute command on current mysql
mysqlenv exec mysql -uroot test -e '...'
# change global default mysql to 5.1.68
mysqlenv global 5.1.68
# change local mysql to 5.5.30
mysqlenv local 5.5.30
# run this command after install, contains executable script.
mysqlenv rehash
# locate a program file in the mysql's path
mysqlenv which mysqladmin
# show current mysql version
mysqlenv version
# upgrade itself
mysqlenv self-upgrade
Generic command options:
-h, --help Shortcut of `mysqlenv help`.
--version Show mysqlenv version.
See mysqlenv help
for the full documentation of mysqlenv.
See mysqlenv help <command>
for detail description of the command.
MySQL A-GO!GO!
Run in your terminal the following:
curl -kL http://bit.ly/mysqlenv | bash
or
cpanm git://github.com/xaicron/mysqlenv.git
mysqlenv self-install
You should run the following:
echo 'source ~/.mysqlenv/etc/bashrc' >> ~/.bashrc
NOTE: if you using zsh
then modify your ~/.zshrc .
And restart your shell.
Plese use github issues: https://github.com/xaicron/mysqlenv/issues.
Copyright (C) xaicron.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
xaicron xaicron@gmail.com