using command line to query redis and mysql in multi envs.