X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Flist_mysql_databases;h=45587d862827ec1b3a07b309936481ede45f9eea;hb=9a92dc906b4bc897c4bdbde5e9a020384b35319f;hp=5c34482c99e728c811ab77c56e59108ac80ba91d;hpb=323cda8d315ee86497c9f3c249493173cc3e65c7;p=biopieces.git diff --git a/bp_bin/list_mysql_databases b/bp_bin/list_mysql_databases index 5c34482..45587d8 100755 --- a/bp_bin/list_mysql_databases +++ b/bp_bin/list_mysql_databases @@ -38,13 +38,13 @@ use Maasha::SQL; my ( $options, $user, $password, @databases, $database ); -$user = $ENV{ "USER" }; -$password = $ENV{ "USER" }; +$user = Maasha::Biopieces::biopiecesrc( "MYSQL_USER" ); +$password = Maasha::Biopieces::biopiecesrc( "MYSQL_PASSWORD" ); $options = Maasha::Biopieces::parse_options( [ - { long => 'user', short => 'i', type => 'string', mandatory => 'no', default => $user, allowed => undef, disallowed => undef }, - { long => 'password', short => 'n', type => 'string', mandatory => 'no', default => $password, allowed => undef, disallowed => undef }, + { long => 'user', short => 'u', type => 'string', mandatory => 'no', default => $user, allowed => undef, disallowed => undef }, + { long => 'password', short => 'p', type => 'string', mandatory => 'no', default => $password, allowed => undef, disallowed => undef }, ] );